PDF download Download Article
Quick tricks to open directories in CMD
PDF download Download Article

Do you need to access a certain folder at the Windows command prompt? The command prompt may seem archaic, but it's really easy once you learn some basic commands. This wikiHow article will show you how to use the "cd" command to open a folder in the Windows Command Prompt (CMD). We’ll also show how to open a command prompt window from within File Explorer and how to open a File Explorer window from within Command Prompt.

Easily Open a Folder in CMD

Click the Windows Start menu, type “CMD”, and click Command Prompt. Type “cd” followed by the path of the folder you want to open. For example, to open your Documents folder, type something like “cd C:\Users\<yourusername>\Documents” and press Enter.

Method 1
Method 1 of 3:

Using Command Prompt Commands

PDF download Download Article
  1. This displays the Command Prompt in the Windows search results.
  2. Advertisement
  3. If the folder you want to open is on a different drive other than the drive your Windows operating system is installed on, you need to switch to that drive in Command Prompt. To do so, type the letter of the drive followed by a colon (e.g., "D:") and then press Enter.
    • You only need to do this if the folder is not located on the drive that Windows is installed on (which is usually the "C:" drive).
  4. The "cd" command is used to change directories in the Windows Command Prompt. Type "cd" followed by a space, but do not press Enter just yet.[2]
  5. You'll need to include every folder and subfolder the folder is located in. Place a backslash ("\") in front of each folder name.[3] For example; "cd \Users\username\Documents."[4]
    • If you are not sure what the path of the folder is, you can navigate to the folder in File Explorer. Right-click the address bar at the top and click Copy address as text. You can then press Ctrl + V to paste the path of the folder directly into Command Prompt right after the "cd" command.
  6. Advertisement
Method 2
Method 2 of 3:

Using File Explorer

PDF download Download Article
  1. Use File Explorer to browse to the folder you want to open. Then click the folder to open it.
  2. The address bar is the bar that lists the current folder(s) you are in at the top of File Explorer. Entering “CMD” in the address bar opens a new Command Prompt window inside the folder you currently have open in File Explorer.[6]
    • Alternatively, on some older versions of Windows, you can right-click a blank space inside a folder and click Open command window here. On newer versions of Windows, the option is Open PowerShell window here instead.
    • According to professional technologist Stan Kats, PowerShell is like a more advanced version of Command Prompt. It’s a different language, but it uses a lot of the same commands that are available in Command Prompt. It also allows you to manage Microsoft 365 and interface with Microsoft networks.[7]
  3. Advertisement
Method 3
Method 3 of 3:

Commands to Open Folders in File Explorer

PDF download Download Article
  1. This displays the Command Prompt in the search results.
  2. 3
    Open your quick access folders in File Explorer. Your Quick Access folders are usually the Desktop, Downloads, Documents, Music, Pictures, and Videos folders. You can quickly open a Quick Access folder by typing start followed by the folder name (i.e., start documents. Then press Enter.
    • For this to work, you need to be in the same user folder as your Quick Access folders. For example, if there are multiple users on your computer, CMD should open to “C:\users\[your_user_name]” or something similar. If you are not in that folder, you’ll need to use the “cd” command to open the folder with your Quick Access folders.
  3. 4
    Open the folder you are currently in in File Explorer. If you have a folder open in Command Prompt, and you want to open it in File Explorer, simply type start . or explorer and press Enter. This will open the folder you are currently in in a File Explorer window.
  4. 5
    Open a specific folder in File Explorer. To open a specific folder in File Explorer, type start . “path to folder]” or explorer “[path to folder]” and press Enter. Make sure you put the path to the folder in quotation marks. For example, if you want to open your Program Files (x86) folder in File Explorer, you would type something like start . “C:\Program Files (x86)” and press Enter.
  5. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

Change Directories in Command Prompt Navigate to a Different Folder in the Command Prompt
Navigate the Windows DirectoryNavigate the Windows Directory
Go Back Using the Command PromptGo Back Using the Command Prompt
Copy Files in Command PromptCopy Files in Command Prompt
Open the Command Prompt in Windows6 Simple Ways to Open the Command Line in Windows
Use MS DOS Use MS DOS
Open Terminal in Windows Open the Windows Terminal: A Quick Guide
Run a Program on Command Prompt Run a Program at the Windows Command Prompt: 2 Ways
Run an EXE File From Command PromptRun an EXE File From the Command Prompt on Windows 10 & 11
Run a Batch File from the Command Line on Windows Execute a Batch File from the Command Line (CMD)
Use the Command Terminal in Windows 10 to Move and Copy Files/Folders Use the Windows 10 CLI to Move & Copy Files or Folders
Run Command Prompt As an Administrator on Windows4 Ways to Run the Command Prompt as an Administrator in Windows
Find All Commands of CMD in Your Computer Display and Use CMD Commands: A List and Guide
Start the Control Panel from the Command Line Open the Control Panel from a CLI on a Windows Computer
Advertisement

About This Article

Stan Kats
Co-authored by:
Professional Technologist
This article was co-authored by Stan Kats and by wikiHow staff writer, Travis Boylls. Stan Kats is a Professional Technologist and the COO and Chief Technologist for The STG IT Consulting Group in West Hollywood, California. Stan provides comprehensive technology solutions to businesses through managed IT services, and for individuals through his consumer service business, Stan's Tech Garage. Stan holds a BA in International Relations from The University of Southern California. He began his career working in the Fortune 500 IT world. Stan founded his companies to offer an enterprise-level of expertise for small businesses and individuals. This article has been viewed 585,066 times.
How helpful is this?
Co-authors: 11
Updated: March 6, 2026
Views: 585,066
Categories: Command Prompt
Article SummaryX

1. Click the Windows Start menu and type "cmd".
2. Click the Command Prompt icon to open it.
3. Type "cd" followed by a space.
4. Type the address of the folder after the space (i.e. "/Users/username/Documents.")
5. Press Enter.

Did this summary help you?

Thanks to all authors for creating a page that has been read 585,066 times.

Is this article up to date?

Advertisement