How to get to an MS-DOS prompt or Windows command line
Below are the steps on how to get to an MS-DOS prompt or into the Windows command line in all versions of Microsoft operating systems.
- From the Start screen type cmd and press enter.
- Move the mouse cursor to the very bottom-left corner of the screen and right-click or press Windows key + X.
- In the power user task menu, select either Command Prompt or Command Prompt (Admin).
- Click Start.
- Type cmd and press enter.
Notice: For some commands and options to work in the Windows Vista and 7 command line you must run the command line as Administrator. To do this, right-click on the cmd icon and choose Run as administrator.
If you're attempting to get into an MS-DOS prompt to troubleshoot the computer boot the computer into Safe Mode.
- Click Start.
- Click Run.
- Type cmd or command and press enter.
If you are attempting to get into an MS-DOS prompt to troubleshoot the computer, boot the computer into Safe Mode.
Tip: Windows 2000 and XP users who are unable to boot the computer into Normal Windows mode or Safe mode, can also enter and use the recovery console to manage their computer from a prompt.
Finally, if you are experiencing issues getting into Windows NT, 2000, or XP, it may be necessary to run troubleshooting steps from an MS-DOS prompt. It is recommended that the Network Administrator get into the MS-DOS prompt by using either a standard MS-DOS boot diskette (note: will not be able to access data using a standard MS-DOS bootable diskette) or the ERD diskettes created after the installation of Windows NT, or boot from the Windows XP CD.
If you can get into Windows 95, 98 or ME, you can get to an MS-DOS prompt by following the steps below.
- Click Start
- Click Run
- Type "command" and press enter.
This opens an MS-DOS shell. However, if you are attempting to troubleshoot an issue with the computer and are using Microsoft Windows 95 or Windows 98, we suggest you restart the computer into MS-DOS. To do this follow the steps below.
How to restart the computer into an MS-DOS prompt
- Click Start
- Click Shutdown
- Choose the option to restart the computer into an MS-DOS prompt.
If you are unable to get into Windows 95 or Windows 98 to get into an MS-DOS prompt, follow the instructions below (Windows ME does not have this option).
- Reboot the computer
- As the computer is booting, press the F8 key when you hear a beep or when you see "Starting Windows 95" or "Starting Windows 98." Windows 98 users sometimes may find it easier to press and hold the left CTRL key as the computer is booting.
- If done properly the user should get to a screen similar to the below screen.
|Microsoft Windows 95 Startup Menu|
Enter a choice: 1
F5=Safe Mode Shift+F5=Command prompt Shift+F8= Step-by-step confirmation [N]
4. Select the option for Safe mode command prompt only.
If you are running MS-DOS with no other operating systems, the computer should be booting into an MS-DOS prompt automatically unless you have a shell or other program loading automatically.
If the computer is not getting you to an MS-DOS prompt, reboot the computer and as the computer is booting, press the F5 key when you see the message "Starting MS-DOS" or the MS-DOS version. This will load the default standard MS-DOS.
If you successfully get to an MS-DOS prompt and would like to prevent the computer from loading the program that is preventing you from getting to an MS-DOS prompt, or if you would like to fix possible error messages you may be receiving when booting the computer, edit the autoexec.bat or the config.sys files.
If you are running Windows 3.x it is likely that the computer is booting into Windows automatically and bypassing the MS-DOS prompt. If Windows loads successfully into Windows, to exit to an MS-DOS prompt, from Program Manager, click the File menu and then Exit.
If the computer is trying to load into Windows but is encountering errors while it is booting, reboot the computer and press F5 key when you see the message "Starting MS-DOS" or the MS-DOS version. This will load the default standard MS-DOS.
If you do not want Windows 3.x to load automatically into Windows 3.x, you need to edit the autoexec.bat file and remove the "win" line.
If you are using another operating system such as OS/2, Linux variants, or Unix variants and you need to get to an MS-DOS prompt, it is recommended that you use an MS-DOS boot diskette unless you are dual booting the computer. Keep in mind that booting from an MS-DOS diskette is not going to allow you to have access to the files used with other operating systems. However, if you're erasing everything and starting over this would allow you to delete all pre-existing information and start over.