private void button1_Click(object sender, EventArgs e)
{
Registry.SetValue("HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\Shell\\New Window", "", "在新窗口中打开");//添加右键菜单
Registry.SetValue("HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\Shell\\New Window\\Command", "", "exlorer.exe %1");//设置打开命令
MessageBox.Show("右键菜单添加成功");
}
亲爱的:被墙域名跳转TG:@qianhenetwork QQ:851617266,可否收藏+评论+分享呢?
文章评论 本文章有个评论