5 Simple Ways to Open the Command Prompt in Windows

PDF download Download Article
A quick guide to accessing the Windows command prompt (CMD)
PDF download Download Article
  • Searching for Command Prompt
  • |
  • Using the Run Program
  • |
  • Navigating to Command Prompt
  • |
  • Using the File Explorer
  • |
  • Running as Administrator
  • |
  • Video
  • |
  • Q&A
  • |
  • Tips
  • |
  • Warnings

The command prompt can be used to execute specific commands and perform advanced functions. If you need to troubleshoot your Windows laptop or computer, you may need to run the command prompt. Luckily, you can launch CMD using a variety of easy methods. You must have administrator access to run the command prompt, so you won't be able to do this on school computers or other locked devices. This wikiHow will show you how to get to and open the command prompt (CMD) on your Windows 8, 10, or 11 computer.

Things You Should Know

  • Open the "Start" menu and type "cmd". Click "Command Prompt".
  • Press "Windows" + "R" to open the Run program. Type "cmd" and press "Enter".
  • Open the "Start" menu. Click "Windows System" folder to expand it. Click "Command Prompt".
Method 1
Method 1 of 5:

Searching for Command Prompt

PDF download Download Article
  1. Step 1 Open Start icon.
    Click the Windows logo in the bottom-left corner of the screen, or press the Windows key. You can search for Command Prompt on all supported versions of Windows, such as Windows 8, Windows 10, and Windows 11. [1]
    • If you're using Windows 8, place your mouse cursor in the top-right corner of the screen, then click the magnifying glass icon when it appears.
  2. Step 2 Type cmd or command prompt into the Start menu.
    Typing into the Start menu will automatically begin a search.
    Advertisement
  3. Step 3 Click icon Command Prompt.
    You should see the Command Prompt icon appear near the top of the Start window. Clicking its icon will open the Command Prompt.
  4. Advertisement
Method 2
Method 2 of 5:

Using the Run Program

PDF download Download Article
  1. Step 1 Open the Run program.
    On your keyboard, press the Windows key + R at the same time. The Run window will open.
    • Alternatively, you can right-click the Start icon (or press Windows + X) and click Run.
  2. Step 2 Type cmd into Run.
    This is the command to open Command Prompt.
  3. Step 3 Click OK or press ↵ Enter.
    This will run the "cmd.exe" command, which opens Command Prompt.
    • You'll now be able to use CMD.
  4. Advertisement
Method 3
Method 3 of 5:

Navigating to Command Prompt

PDF download Download Article
  1. Step 1 Open the Start icon menu.
    Click the Windows logo in the bottom-left corner of the screen. You can also press the Windows key.
    • On Windows 11, this can be found at the bottom center of the screen.
  2. Step 2 Scroll down to Windows System and click it.
    This folder will be near the bottom of the Start window.
    • On Windows 11, click All apps, then Windows Tools.
  3. Step 3 Click icon Command Prompt.
    It should be near the top of the Windows System folder. This will open Command Prompt.
    • On Windows 11, this will be at the top of the Windows Tools folder.
    • If you're unable to open the Command Prompt, you may need to open as an admin.
  4. Advertisement
Method 4
Method 4 of 5:

Using the File Explorer

PDF download Download Article
  1. Step 1 Open the File Explorer.
    Click the Start menu and type in "file explorer". Click File Explorer to open it.
    • If you have the shortcut pinned to your taskbar, right-click the icon and click File Explorer to open a new window.
  2. Step 2 Click the address bar.
    This will be near the top of the window.
    • You might see Quick access in the address bar by default.
  3. Step 3 Type cmd and press ↵ Enter.
    This will replace any text in the address bar with your new path.
    • The Command Prompt will open.
  4. Advertisement
Method 5
Method 5 of 5:

Running as Administrator

PDF download Download Article
  1. Step 1 Locate the Command Prompt.
    Click the Start menu and type cmd. The search result will appear in the menu.
  2. Step 2 Right-click the Command Prompt.
    A pop-up menu will open.
  3. Step 3 Click Run as administrator.
    You can now use the Command Prompt as an administrator, which gives you access to more permissions and commands.
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I close out Command Prompt?
    ClixTech Australia
    ClixTech Australia
    Community Answer
    Type "exit" in the Command Prompt, or press the red "X" in the top right corner, or press Alt+F4 on the keyboard. Check out the Close Command Prompt article for more detailed instructions!
  • Question
    What do I do if I can't use Microsoft Edge and the Start button?
    Community Answer
    Community Answer
    Press the Windows Key + R, then type in cmd.exe and hit enter.
  • Question
    How do I stop Windows command prompt from starting up automatically?
    Community Answer
    Community Answer
    If it starts up every time, then something is causing it. It may be a program or a shortcut to command prompt that is saved in your Windows start folder. If you want to stop it from appearing altogether by uninstalling it, you won't be able to.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • Command Prompt is a good place to run legacy or specialty software. You might also use it if you're trying to manipulate specific files.
    Thanks
    Helpful 0 Not Helpful 0
Submit a Tip
All tip submissions are carefully reviewed before being published
Submit
Thanks for submitting a tip for review!
Advertisement

Warnings

  • If you're using a computer with restricted access to settings and programs, you may not be able to open Command Prompt.
    Thanks
    Helpful 5 Not Helpful 1
Advertisement

You Might Also Like

Run a Program on Command PromptHow to Run a Program at the Windows Command Prompt: 2 Ways
Fix Full Screen in Command Prompt (CMD)Fix Full Screen in Command Prompt (CMD)
Change Directories in Command PromptHow to Navigate to a Different Folder in the Command Prompt
Change a Computer Password Using Command PromptHow to Change a Windows Password Using Command Prompt
Format a USB Using CmdHow to Format a USB Using CMD (Command Prompt)
Add Users from CMDAdd Users from CMD
Run a Batch File from the Command Line on WindowsHow to Run a Windows Batch File from the Command Line (CMD)
Reboot from Command Prompt on WindowsReboot from Command Prompt on Windows
Use Windows Command Prompt to Run a Python FileUse Windows Command Prompt to Run a Python File
Open a Folder in CmdHow to Open a Folder in Command Prompt (CMD)
Copy Files in Command PromptCopy Files in Command Prompt
Use Net SendUse Net Send
Run an EXE File From Command PromptHow to Run an EXE File at the Windows Command Prompt
Open Command Prompt with a Keyboard Shortcut (Windows 8, 8.1, and 10)3 Ways to Open Command Prompt with Keyboard on Windows
Advertisement

References

  1. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands

About This Article

Luigi Oppido
Co-authored by:
Luigi Oppido
Computer & Tech Specialist
This article was co-authored by Luigi Oppido and by wikiHow staff writer, Rain Kengly. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 686,554 times.
How helpful is this?
Co-authors: 20
Updated: June 6, 2024
Views: 686,554
Categories: Featured Articles | Command Prompt
In other languages
  • Print
  • Send fan mail to authors
Thanks to all authors for creating a page that has been read 686,554 times.

Reader Success Stories

  • Krys Dubicki

    Krys Dubicki

    Dec 11, 2016

    "Need to run the sfc.exe command. Problem is the command prompt (as well as many Win commands) will not stay..." more
More reader stories Hide reader stories
Share your story

Is this article up to date?

Advertisement