Auto run of a batch file just before shutdown

  • Thread starter Thread starter flahmeshess
  • Start date Start date
F

flahmeshess

When I shutdown W2k, is it possible to get it to run a batch file just
before the shutdown begins ? Thanks.
 
Try adding it through the Group policy editor
%systemroot%\system32\gpedit.msc
Computer Configuration\Windows Settings\Scripts\Shutdown

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| When I shutdown W2k, is it possible to get it to run a batch file just
| before the shutdown begins ? Thanks.
|
 
When I shutdown W2k, is it possible to get it to run a batch file just
before the shutdown begins ? Thanks.

Thesr is available a "shutdown.exe" program that you could put in your
batch file. Then put the batch file into a desktop icon labeled
"Shutdown" and educate your users.
 
The user is myself. Workable solution. Thanks.

Rich said:
Thesr is available a "shutdown.exe" program that you could put in your
batch file. Then put the batch file into a desktop icon labeled
"Shutdown" and educate your users.

--
Rich Greenberg Marietta, GA, USA richgr atsign panix.com + 1 770 321 6507
Eastern time. N6LRT I speak for myself & my dogs only. VM'er since CP-67
Canines:Val, Red & Shasta (RIP),Red, husky Owner:Chinook-L
Atlanta Siberian Husky Rescue. www.panix.com/~richgr/ Asst Owner:Sibernet-L
 
Try explicitly calling the command shell processor.

cmd.exe mybatch.cmd

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I tried this but it does not run the bat file when it shuts down. hmm.
 
Back
Top