摘要: 如果你是管理员权限,那么你可以考虑修改注册表来达到这个功能,当然你也可以把修改注册表提前告诉用户,毕竟有的用户不喜欢随便修改自己的东西。那修改的路径就在这个地方:readonly string regPath = @"Software\Microsoft\Windows\CurrentVersion\Run";然后,你要获得你的程序的路径,可以:Application.ExecutablePath,或者Environment.CurrentDirectory + "\\XX.exe"。然后就是修改注册表了。1 RegistryKey rk = Regis 阅读全文
posted @ 2011-08-20 14:52 Walsh 阅读(608) 评论(2) 推荐(0) 编辑