注册表编程:指定的路径无效!有经验的进来看看
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();
}
}
}
错误信息:指定的路径无效