How To Open Files and Folders in Command Prompt on Windows
If you’ve ever seen someone quickly type commands instead of clicking through menus, they were probably using Command Prompt (often called cmd). Learning how to “open in Command Prompt” can save time, help with troubleshooting, and unlock tools that don’t even have a normal window.
This guide walks through what Command Prompt is, different ways to open it, and how to open specific folders or files from it—without assuming you’re a programmer.
What “Open in Command Prompt” Actually Means
People usually mean one of three things when they say “open in Command Prompt”:
Open the Command Prompt window itself
For example, launching the black text window where you can type commands.Open Command Prompt in a specific folder
So when it opens, you’re already “inside” a folder like C:UsersYourNameDocuments.Open a file, program, or folder from Command Prompt
For example, launching Notepad, a .bat script, or File Explorer using commands.
All three are related, but they involve slightly different steps and depend on things like your Windows version and user permissions.
Ways To Open Command Prompt on Windows
1. Open Command Prompt from the Start Menu
This works on most recent versions of Windows (10, 11, and earlier).
Normal (non-admin) Command Prompt
- Click the Start button (Windows logo).
- Type cmd or command prompt.
- Click Command Prompt in the results.
Administrator Command Prompt (elevated)
Some commands require administrator rights (for example, changing system settings).
- Click Start.
- Type cmd.
- Right‑clickCommand Prompt.
- Choose Run as administrator.
- If asked, confirm or enter an admin password.
You’ll know it’s elevated if the window title includes “Administrator: Command Prompt”.
2. Open Command Prompt via Run Dialog
This is quick once you remember the shortcut.
Press Windows key + R on your keyboard.
In the Run box, type:
cmdPress Enter or click OK.