注册表编程:指定的路径无效!有经验的进来看看

flcandclf flcandclf 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
using System;
using Microsoft.Win32;

namespace ConsoleApplication1
{
class Class1
{

[STAThread]
public static void Main(string[] args)
{
RegistryKey key = Registry.CurrentUser;
RegistryKey key2 = key.CreateSubKey("\\Software\\Microsoft\\Windows\\Current Version\\Policies\\Explorer");
key2.SetValue("NoRecentDocsMenu",1);//隐藏开始菜单中文档项
key2.SetValue("NoFind",1);//隐藏开始菜单中查找项
key2.Close();
}

}
}
错误信息:指定的路径无效
...全文
评论 6
收藏 已收藏
分享
返回顶部
flcandclf
C# 111,129 成员 642,539 内容