文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>c#实现程序开机自动运行(转)

c#实现程序开机自动运行(转)

时间:2010-10-13  来源:Jessica Lu

代码如下: 
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); //设置注册表中的启动键 } 
原文地址:http://www.cnblogs.com/yulei/archive/2007/06/13/781964.html
相关阅读 更多 +
排行榜 更多 +
宝宝巴士儿歌免费完整版

宝宝巴士儿歌免费完整版

休闲益智 下载
强壮的奶奶

强壮的奶奶

休闲益智 下载
苹果骑士2无敌版

苹果骑士2无敌版

冒险解谜 下载