Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running script at the time of shutdown.

Status
Not open for further replies.

Psingh

MIS
Feb 25, 2002
171
IN
Hi,

I'm having a script that I want to run as soon as user gives a shutdown command to his/her system.

Any idea how to configure the same.

PSingh
 
If you make a batch file that starts to run your script, and then place this line at the end:
C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows
Then make a shortcut on the desktop to that file called "windows shutdown" and have your users use that shortcut to shut down. Might work...

If you're going through Hell...keep going... (Winston Churchill)
RocKeRFelLerZ
 
But of course running batches on startup is much easier.

Jon

There is much pleasure to be gained from useless knowledge. (Bertrand Russell)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top