Running a program on startup/shutdown

  • Thread starter Thread starter Adam Clauss
  • Start date Start date
A

Adam Clauss

I need to configure Windows XP such that upon starting up, it runs a
program.

Likewise, when the user selects to shutdown or restart (but not just logging
off), I need another program to run.

How might I go about doing this?
 
Hey Adam, try this:

Startup:
1. Add the program to the startup group for all users
(C:\Documents and Settings\All Users\Start
Menu\Programs\Startup)
2. Using regedit, find
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
and add the program there.

Shutdown:
1. Use a third party program such as shutdown plus
(http://www.wmsoftware.com/shutdownplus/sdpstd.htm)-they
have a free trial
2. Create a batch file (say MYSHUTDOWN.BAT) that looks like
this:
C:\Myshutdown\Runthisapp.exe
shutdown

I'm sure there are tons of other ways as well, but that
should get you started. Google "shutdown manager" or "run
program on shutdown" for more ideas

-James
 
Try using Group Policy settings. To open the Group Policy Editor, here's
how:

Click 'START' then 'Run' on the start-menu. Type 'gpedit.msc' and press
Enter key.

This will launch the Group Policy Editor. In the left pane, there are
Computer Configuration settings and User Configuration settings--expand the
Computer Configuration settings. I'm not sure at this moment, but there's
an option for startup and shutdown scripts--this may be an option.

Best regards,

Todd

I need to configure Windows XP such that upon starting up, it runs a
program.

Likewise, when the user selects to shutdown or restart (but not just logging
off), I need another program to run.

How might I go about doing this?
 
Back
Top