Is there an easy way to do that? I'm relatively new to C# and I'm writing a program that gives the user the option (via a checkbox) to start when windows boots up. To do that, I was going to add a registry key using the following:
RegistryKey key = Registry.CurrentUser.OpenSubKey( @"Software/Microsoft/Windows/CurrentVersion/Run", true);
key.setValue("program name", "PATH GOES HERE");
But I don't know how to find out the path where the program is. Is there a way to find it without resorting to a search for the program name (which the user could have just changed anyway) like in this example http://www.codeproject.com/csharp/WinWhich.asp ?
Thanks in advance
Loading
Daniel Torres 0Posted Jul 22, 2005, 3:48 PM
Daniel Torres 0Posted Jul 22, 2005, 3:47 PM
RyanPosted Jul 22, 2005, 4:19 AM
Daniel Torres 0Posted Jul 21, 2005, 2:36 PM
RyanPosted Jul 21, 2005, 12:34 AM
Mahesh ChandPosted Jul 21, 2005, 12:14 AM