By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,563 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,563 IT Pros & Developers. It's quick & easy.

Programmatically runnung an application on windows startup

P: n/a
How can I programmatically start a windows application when windows
loads. Can I get the code to do that, I'd rather do it with code than
with the setup & deployment wizard.
I'd also like to be able to set it up from the windows enviroment
(getting an application to load at windows startup)

Jun 14 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hello New,

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
Jun 14 '06 #2

P: n/a
New user wrote:
How can I programmatically start a windows application when windows
loads. Can I get the code to do that, I'd rather do it with code than
with the setup & deployment wizard.
I'd also like to be able to set it up from the windows enviroment
(getting an application to load at windows startup)


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\Curre ntVersion\Run or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run, again
depending on whether you want your program to run automatically at startup
for the current user or for all users.
--
Tom Porterfield

Jun 15 '06 #3

P: n/a

Tom Porterfield wrote:
New user wrote:
How can I programmatically start a windows application when windows
loads. Can I get the code to do that, I'd rather do it with code than
with the setup & deployment wizard.
I'd also like to be able to set it up from the windows enviroment
(getting an application to load at windows startup)


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\Curre ntVersion\Run or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run, again
depending on whether you want your program to run automatically at startup
for the current user or for all users.
--
Tom Porterfield


Jun 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.