Put shortcut into Startup folder
NU> How can I programmatically start a windows application when windows
NU> loads. Can I get the code to do that, I'd rather do it with code
NU> than
NU> with the setup & deployment wizard.
NU> I'd also like to be able to set it up from the windows enviroment
NU> (getting an application to load at windows startup)
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
There are several ways to get an application to run at startup. One option
is to place a shortcut to the exe in the Startup folder, the location of
which varies depending on which version of Windows and whether you want it
to start for the current user or all users. You can also place the path to
the exe in the registry at either
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, again
depending on whether you want your program to run automatically at startup
for the current user or for all users.
--
Tom Porterfield