How to get to an MS-DOS prompt or Windows command line
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.
- Windows 10
- Windows 8
- Windows Vista and 7
- Windows NT, 2000, and XP
- Windows 95, 98, and ME
- MS-DOS
- Windows 3.x
- Other PC Operating System
1 windows 10
1 Click Start.
2 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.
2 Windows 8
1 Get to the Start screen
2 Type cmd and press Enter.-
OR -
1 Move the mouse pointer to the very bottom-left corner of the screen and right-click, or press Windows key + X.
2 In the power user task menu, select either Command Prompt or Command Prompt (Admin).
3 Windows Vista and 7
1 Click Start.
2 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.
4 Windows NT, 2000, and XP
1 Click Start.
2 Click Run.
3 Type cmd or command and press Enter.
Difference between the command.com and cmd.exe.
If you are attempting to get into an MS-DOS prompt to troubleshoot the computer, boot the computer into Safe Mode.
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 gain access either by using a standard MS-DOS boot diskette or the ERD diskettes created after the installation of Windows NT. Also, they may access MS-DOS by booting from a Windows XP CD.
5 Windows 95, 98, and ME
If you can get into Windows 95, 98 or ME, you can get to an MS-DOS prompt by following the steps below.
1 Click Start
2 Click Run
3 Type "command" and press Enter.
Following the steps above 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
1 Click Start
2 Click Shutdown
3 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 to an MS-DOS prompt, follow the instructions below (Windows ME does not have this option).
1 Reboot the computer
2 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.
3 If done properly, the user should get to a screen similar to the below screen.
Microsoft Windows 95 Startup Menu
=============================
1. Normal
2. Logged (\BOOTLOG.TXT)
3. Safe mode
4. Step-by-step confirmation
5. Command prompt only
6. Safe mode command prompt only
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.
4 Select the option for Safe mode command prompt only.
Getting to MS-DOS
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 cannot load MS-DOS, 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. Pressing this key should load the default settings for MS-DOS.
If this gets you to an MS-DOS prompt and you want to prevent the problem from happening again, edit the autoexec.bat or the config.sys files and remark any bad settings or lines.
MS-DOS in Windows 3.x
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 the computer loads successfully into Windows, to exit to an MS-DOS prompt, from the Program Manager, click the File menu and select Exit.
If the computer cannot load MS-DOS, 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. Pressing this key should load the default settings for MS-DOS.
If you do not want Windows 3.x to load automatically into Windows 3.x, edit the autoexec.bat file and remove the "win" line.
Other operating system
Tip: If you want a command line, you more than likely want to access the Shell or Terminal for your operating system, not MS-DOS.
If you are using another operating system (e.g., OS/2 or Linux variant) and you need to get to an MS-DOS prompt, 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.
No comments