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

reboot command for .bat file

Status
Not open for further replies.

mikeadmin

MIS
Joined
Oct 22, 2001
Messages
38
Location
US
Hi,
I am running a .bat file and need to know how to reboot my system after the .bat file is executed.
Thanks
 
Try the SHUTDOWN.EXE that comes as part of the NT Resource Kit. Not a DOS command but should do the job for you. "It's true, its damn true!"
 
Thanks for the help guys. Is it ok to run this program in a nightly .bat file? If this file is called shutdown, how do I get my system to reboot? Sorry, very new to this. I don't have my resource kit CD, is the file big? Maybe someone can send it to me. I appreciate it.
Mike
megidio@yahoo.com
 
You can use PsShutdown in a nightly batch file. Make sure that the path to PsShutdown is specified in Control Panel | System | Environment | Path.
To make the system reboot use the -r flag. If you download PsTools you'll get a help file called pstools.chm which will explain all the options.
Post back if you have any questions.
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top