How to restart or shut down the computer in DOS

Updated: 02/07/2022 by Computer Hope
MS-DOS logo

To learn how to restart or shut down a computer through the Windows command line or MS-DOS, select a link below.

Restart or shut down 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 shut down 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 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 from Windows. You may also follow the steps mentioned at the top of this page.