how can I run an app automatic after restart?
how can I run an app automatic after restart? (by c# code) I create A new string in 'runOnce' key in registry with the path of the App. the OS run this APP before it load the OS my problem is: My APP loads but explorer doesn't load, after I close my APP, explorer loads I restart the computer in APP, and after restart I want that my APP reopen When you click restart from your app, make the following modifications to the registry: Create an entry in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry branch. Use Registry.LocalMachine.CreateSubKey("SOFTWARE\\Microsoft\\Windows\