C# add application in autorun (regedit | реестр)

Автор: Administrator.

private static void autorun()
 {
 const string name = "my_app";
 string ExePath = Application.ExecutablePath;
 RegistryKey reg;
 reg = Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Run\");
 reg.SetValue(name, """ + ExePath + "" /hide");
 reg.Close();
 }


Built with HTML5 and CSS3 | Copyright © 2012 - 2015 Зарембо Александр