开机自启动程序如下:
if (!System.IO.File.Exists(filename))
throw new Exception("该文件不存在!");
string name = filename.Substring(filename.LastIndexOf("\\") + 1);
reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
if (reg == null)
{
&nb