Navigate Directories in Windows With Command Prompt [Complete Guide]
Command Prompt (CMD) is a Windows command-line tool that lets you interact with your computer by entering text commands. You can use it to open folders, view files, switch drives, move to parent directories, and work with folders stored anywhere on your PC.
If you’re new to Command Prompt, don’t worry. You don’t need to memorize dozens of commands to get started. Learning a few basics, such as cd, dir, and cd .., is enough to navigate most folders on your computer.
In this guide, you’ll learn how to navigate directories in Windows 11 and Windows 10 using Command Prompt.
Navigate Directories in Windows With Command Prompt

To navigate a directory in Windows using Command Prompt, open CMD, type cd followed by the folder path, and press Enter. For example, enter cd C:\Users\YourName\Documents to move to the Documents folder. Use dir to view files and folders, cd .. to move up one level, and cd /d to switch drives and directories at the same time.
Let’s go through each method in detail so you can use these commands confidently.
1: Open Command Prompt in Windows
Before navigating folders, you need to open Command Prompt. Windows 11 and Windows 10 offer a couple of easy ways to do this.
Press Windows + R on your keyboard to open the Run dialog box. Type cmd in the text field and press Enter. A black Command Prompt window will appear.
You can also open the Start menu, type Command Prompt in the search box, and select the result.
For basic directory navigation, you usually don’t need administrator access. A regular Command Prompt window is enough to browse most folders your Windows account can access.
Once CMD opens, you’ll see a line that may look something like this:
C:\Users\Liam>
This is called the command prompt. It shows your current working directory, which is the folder where Command Prompt is currently operating. The name on your computer may be different, so don’t worry if your screen doesn’t match this example exactly.
2: View Your Current Directory
Before moving to another folder, it’s helpful to know where you are right now.
When you open Command Prompt, look at the path displayed before the greater-than sign (>). That path tells you the current working directory.
For example, if you see:
C:\Users\Liam>
Your current directory is C:\Users\Liam.
You can also type the following command:
cd
Press Enter, and Command Prompt will display the current directory path.
This is useful when you’ve already navigated through several folders and want to confirm your location before entering another command.
Remember that the current directory affects how Windows interprets relative paths. If you enter a folder name without providing its full path, CMD generally looks for that folder relative to your current location.
3: List Files and Folders in the Current Directory
Once you know your current location, you may want to see which folders and files are available there.
Type the following command and press Enter:
dir
Command Prompt will display the contents of the current directory, including file names, folder names, and other details.
For example, you might see folders named Desktop, Documents, Downloads, and Pictures.
If you want to find a specific folder before opening it, the dir command can help you confirm its exact name.
You can also use:
dir /p
This displays the results one screen at a time, which is helpful when a directory contains many files.
To show only directories, enter:
dir /ad
This makes it easier to find folders without having to look through every file in the list.
4: Navigate to a Folder Using the CD Command
The cd command, short for Change Directory, is the primary command used to navigate folders in Command Prompt.
Suppose your current directory is C:\Users\Liam, and you want to open the Documents folder.
Enter:
cd Documents
Press Enter. Your prompt should now show:
C:\Users\Liam\Documents>
You’ve successfully moved into the Documents directory.
You can use the same method for other folders. For example, if you want to open Downloads from your user folder, enter cd Downloads.
However, the folder must exist at the location you’re navigating from. If CMD displays an error saying it cannot find the path, check the folder name and your current directory using cd and dir.
5: Navigate to a Directory Using Its Full Path
Sometimes the folder you want to open is several levels deep, or it’s located somewhere outside your current directory. In that situation, using the full path is usually easier.
For example, to navigate directly to a Documents folder, type:
cd C:\Users\Liam\Documents
Press Enter, and Command Prompt will move to that location, provided the path exists and you have permission to access it.
Replace Liam with the actual Windows account folder name on your computer.
A full path begins with the drive letter and includes the folders leading to the destination. You don’t need to enter each folder one at a time.
If the directory name contains spaces, enclose the path in quotation marks. For example:
cd “C:\Users\Liam\My Documents”
Quotation marks help CMD interpret the entire path as one location rather than treating the space as a separator.
6: Move Back to the Parent Directory
What if you open a folder and want to return to the folder that contains it? You don’t need to type the entire previous path.
Use this command:
cd ..
The two periods tell Command Prompt to move one directory level up.
For example, if you’re currently in:
C:\Users\Liam\Documents>
Enter cd .., and you’ll return to:
C:\Users\Liam>
You can repeat this command whenever you need to move farther up the folder structure.
For example, if you’re inside C:\Users\Liam\Documents\Reports, entering cd .. takes you to Documents. Entering it again takes you to the Liam user folder.
This is one of the most useful CMD navigation shortcuts, especially when you’re working with deeply nested directories.
7: Switch to Another Drive
Windows computers can have multiple drives, such as C:, D:, and E:. You may need to switch drives when a folder is stored on another partition or an external storage device.
Suppose you’re currently working on the C: drive and want to switch to D:.
Type:
D:
Press Enter.
Command Prompt will switch to the D: drive, using that drive’s remembered working directory for the current CMD session if one exists.
You can then type dir to view its contents.
Keep in mind that entering cd D:\FolderName while you’re on C: changes the remembered directory for D: but does not necessarily switch the active drive. To change the active drive and directory together, use the next method.
8: Switch Drives and Directories With One Command
If you want to switch from one drive to a specific folder on another drive in a single step, use cd /d.
For example, to move directly to the Projects folder on D:, enter:
cd /d D:\Projects
Press Enter.
Command Prompt will switch to the D: drive and open the Projects directory, provided the path exists.
You can use this command with any valid drive and folder path. For example:
cd /d E:\Work\Reports
This takes you directly to the Reports folder inside Work on the E: drive.
The /d option is particularly useful when navigating between different drives frequently. It saves you from typing the drive letter separately before changing directories.
9: Navigate to a Directory With Spaces in Its Name
Some folder names contain spaces, such as Program Files, My Documents, or Project Files. If you enter these paths without quotation marks, Command Prompt may interpret the command incorrectly.
For example, to navigate to Program Files on the C: drive, enter:
cd “C:\Program Files”
Press Enter to open that directory.
For a folder on another drive, you can combine quotation marks with /d:
cd /d “D:\Project Files\2026 Reports”
This command switches to D: and opens the specified folder.
Always make sure the spelling and folder names match the actual path. If you aren’t sure about the exact location, open File Explorer, locate the folder, and use its address bar to check the path.
10: Navigate to a Folder Using Relative Paths
A relative path describes a folder’s location in relation to your current directory. It’s useful when you’re already working inside a parent folder and don’t want to type the full path every time.
Suppose your current directory is:
C:\Users\Liam\Documents>
And inside Documents, there’s a folder named Work that contains another folder named Reports.
You can enter:
cd Work\Reports
Press Enter, and CMD will move directly into the Reports folder.
You can also move into a subfolder and then back out using cd …
For example, entering cd ..\Desktop from your Documents directory attempts to move to the Desktop folder inside your user directory.
Relative paths are convenient for repetitive tasks and command-line workflows. Just remember that they depend on your current working directory, so confirm your location if a command doesn’t work as expected.
FAQs
1. Which command is used to navigate directories in Windows CMD?
The primary command is cd, which stands for Change Directory. Use cd FolderName to open a folder relative to your current location, or cd C:\Path\To\Folder to navigate using a full path.
2. How do I go back one directory in Command Prompt?
Enter cd .. and press Enter. This moves you up one directory level. You can repeat the command to move farther up the folder structure.
3. How do I change drives and folders at the same time?
Use the cd /d command followed by the full path. For example, cd /d D:\Projects switches to the D: drive and opens the Projects folder.
4. Why does CMD say the system cannot find the path specified?
This error usually means the path doesn’t exist, the folder name is incorrect, or a drive isn’t available. Check the path carefully, use dir to inspect the current folder, and make sure the destination drive is connected.
5. Can I navigate to folders with spaces in their names?
Yes. Put the path in quotation marks. For example, use cd “C:\Program Files” to navigate to the Program Files folder.
6. Is Command Prompt navigation different in Windows 10 and Windows 11?
The basic directory navigation commands work the same way in Windows 10 and Windows 11. Commands such as cd, dir, and cd .. are available in both versions.
Summary
Navigating directories in Windows with Command Prompt is easier than it may seem. Start by opening CMD and checking your current location. Use dir to view available folders, cd to enter a directory, and cd .. to move up one level.
When working with another drive, type its drive letter or use cd /d to switch drives and directories together. If a folder name contains spaces, enclose the path in quotation marks.
With a little practice, these commands will help you move through folders faster, manage files more efficiently, and perform everyday Windows tasks without relying entirely on File Explorer.
