Advertisement
Gov_777

Добавить программу в автозапуск

Jun 4th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1. Microsoft.Win32.RegistryKey myKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run\",true);
  2. myKey.SetValue("MyAppName",Application.ExecutablePath);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement