How to restart or shut down the computer in DOS

Updated: 11/13/2018 by Computer Hope

Restarting or shutdown in the Windows command line

MS-DOSTo 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.

To restart a computer running MS-DOS, press the Ctrl+Alt+Del keys to restart the computer. If you need to turn off the computer, press the power button.

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.

Additional information