How to restart or shut down the computer in DOS
Restarting or shutdown in the Windows command line
To restart or shutdown a computer from the Windows command line you can use the shutdown command. If you need to do this often, you can also create a batch file that performs the shutdown command to restart or shutdown.
How to restart or shutdown in MS-DOS
Note: The steps below are for older computers that either boot into MS-DOS or are only running MS-DOS. If you started MS-DOS from within Windows see the above steps for restarting or shutting down the computer from the Windows command line.
Tip: Newer computers may not allow the computer to be shut down unless the power button is held in for a few seconds.
Warning: If you are running a Windows command line from within Windows, it is important that you do not follow the above instructions. Instead, type exit to return to Windows and then restart or shut down Windows from Windows or follow the steps mentioned at the top of this page.