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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running a scrip at shutdown

Status
Not open for further replies.

nhidalgo

MIS
Jun 13, 2001
619
US
is it possible to make 2000 server run a script as part of the shut down process? It would be just a batch file.

Nick
 
once i put the same post and someone told me this...

creat a simple batch like this and when ever i wanted to do shutdown but before run something, do it by executing this...

after you close notepad , the computer will go down...

@ECHO OFF
START /W C:\WINDOWS\notepad.EXE
START C:\WINDOWS\RUNDLL32.exe
C:\WINDOWS\SYSTEM\shell32.dll,SHExitWindowsEx 1

but this doesn't seem to work when you do shutdown on the startmenu

i hope you get something form this!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top