0% found this document useful (0 votes)
17 views2 pages

How To Shut Down

This document provides instructions for shutting down or restarting a computer using a batch file. It explains: 1) For MS-DOS, additional information is needed on the debug page to restart from DOS. 2) For Windows 95/98, adding "shutdown /r /t 0" and "exit" with proper spacing to a batch file will restart the computer. 3) Windows NT/2000/XP users can use "rundll32.exe shell32.dll,ShellExec_RunDLL shutdown.exe" followed by a number to perform different reboot/shutdown actions.

Uploaded by

Vishal Dhekale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

How To Shut Down

This document provides instructions for shutting down or restarting a computer using a batch file. It explains: 1) For MS-DOS, additional information is needed on the debug page to restart from DOS. 2) For Windows 95/98, adding "shutdown /r /t 0" and "exit" with proper spacing to a batch file will restart the computer. 3) Windows NT/2000/XP users can use "rundll32.exe shell32.dll,ShellExec_RunDLL shutdown.exe" followed by a number to perform different reboot/shutdown actions.

Uploaded by

Vishal Dhekale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

How to shut down / restart the computer with a batch file.

Question:
How to shut down / restart the computer with a batch file.

Reasoning:
It may be necessary after a batch file is completed its copying or installing process to restart the computer to complete that installation. Below are steps that can be used to restart a computer through a batch file.

Solution:
MS-DOS sers
If the computer needs to be restarted from MS-DOS please see our debug page for additional information on how to do this.

!indows "#$ !indows "% and !indows M& sers


Restarting the computer S !" #$%&I'DO&S%"('D)).*+* user.e,e-e,itwindowse,ec e,it Shut down the computer #$%&I'DO&S%"('D))./.*+* user-e,itwindows e,it 'O *$ &hen typing the abo0e two lines- spacing is important. It is also 0ery important that the e,it line be placed into the batch file as many times &indows may be unable to restart the computer because of the open MS-DOS window. Microsoft &indows 12- and &indows M* users may also perform the below command to perform different types of rebooting or shutting down. rundll./.e,e shell./.dll-SH*,it&indows*, n &here n is e3ual to one of the below numbers for the proper action.

4 7 / 8 2

)O5O66 SH( DO&' "*BOO 6O"#* 9O&*"O66

!indows '( users


Microsoft &indows +9 includes a new shutdown command that will enable a user to shutdown the computer through the command line and/or batch files. !dditional information about this command can be found on our shutdown command page.

)dditional *nformation:

!dditional information about the rundll and rundll./ files can be found on document #H444:;4.

You might also like