摘要:
RegistryKey KeyCon=Registry.LocalMachine.OpenSubKey( "Software\\Microsoft\\Windows\\CurrentVersion\\Run",true);
string MyKey= "Terminal"; if((string)KeyCon.GetValue(MyKey,"no") == "no")//指定的键不存在
{ string Path = Application.StartupPath+@"\Terminal.exe"; KeyCon.SetValue(MyKey,Path);
//设置注册表中的启动键 }
阅读全文
posted @ 2008-11-11 13:25
天堂的狼
阅读(253)
评论(0)
推荐(0)

浙公网安备 33010602011771号