I've tried to create a Console Application program, and cause the application to run on startup. I found some solutions, but they uses external dll files (Of the operation system, in my case - Windows) or they refers to Windows Forms / WPF. I've realized that the startup code for Windows Forms application is pretty different than from a Console Application's startup code.. Can Someone help me? I really confused now..
Here's the code I found: (on this url: How to run a C# application at Windows startup?)
RegistryKey rkApp = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
rkApp.SetValue("MyAPP", Application.ExecutablePath.ToString());
How can I do this action for a console application, with code that will be similar to this one, and without using external dlls?
Thanks..