The cd command moves you between folders
To change directories in Command Prompt, type cd followed by a space and the folder path, then press Enter. For example, cd Documents moves you into your Documents folder. The folder you specify must exist in your current location, or you need to provide the full path from your drive's root.
Command Prompt always shows your current location in the prompt line itself. On Windows, it typically looks like C:\Users\YourName> or C:\Users\YourName\Documents>. The text before the > symbol tells you exactly where you are in the folder structure.
Key Takeaways
- Type cd FolderName to enter a folder that exists in your current location.
- Type cd .. (two periods) to move up one level to the parent folder.
- Type cd \ to jump to the root of your current drive, usually C:\
- Use the full path like cd C:\Users\YourName\Documents\Projects to jump directly to any folder without moving through each one.
- If a folder name contains spaces, wrap it in quotes: cd "My Documents"
Moving to a subfolder in your current location
When you open Command Prompt, you start in your user folder, usually C:\Users\YourName. From here, you can move into any folder that exists inside it by typing cd and the folder name. If you type cd Documents, Command Prompt looks for a Documents folder in your current location and moves you there if it exists.
You can chain multiple folders together by separating them with backslashes. For example, cd Documents\Projects\Work moves you through Documents, then into Projects, then into Work — but only if each folder exists inside the previous one. If any folder in the path does not exist, Command Prompt returns an error message saying the system cannot find the path specified.
Going back up to parent folders
To move up one level to the folder that contains your current folder, type cd .. (cd followed by a space and two periods). If you are in C:\Users\YourName\Documents\Projects, typing cd .. takes you to C:\Users\YourName\Documents. Typing it again moves you to C:\Users\YourName.
You can go up multiple levels at once by typing cd ..\.. or cd ..\..\.., using one pair of periods for each level. This is faster than typing cd .. multiple times, but it only works if each parent folder actually exists above you.
Jumping directly to any folder with the full path
Instead of navigating step by step, you can type the complete path from your drive's root. For example, cd C:\Users\YourName\Downloads\Images takes you directly to the Images folder inside Downloads, no matter where you started. This is useful when you know exactly where a folder is and do not want to navigate through intermediate folders.
The full path always starts with a drive letter followed by a colon and a backslash — C:\, D:\, and so on. If you are currently on the C: drive and want to go to a folder on the D: drive, you must include the drive letter in your path, or type d: first to switch drives, then use cd to navigate within it.
Handling folder names with spaces
If a folder name contains spaces, you must wrap the entire path in double quotes. For example, cd "My Documents" or cd "Program Files". Without the quotes, Command Prompt treats the space as the end of the command and tries to interpret the rest as a separate instruction, which causes an error.
This applies to any part of the path that contains spaces. If you are navigating to C:\Program Files\My Application, type cd "C:\Program Files\My Application" with quotes around the entire path, or quote each folder individually: cd "Program Files" followed by cd "My Application".
Checking what folders exist in your current location
Before you try to change directories, you can see what folders are available by typing dir and pressing Enter. This lists all files and folders in your current location. Folders are marked with <DIR> next to their names, making them easy to spot. You can then type cd followed by any folder name you see in the list.
If you type a folder name that does not appear in the dir output, Command Prompt returns the error "The system cannot find the path specified." Using dir first prevents this mistake and helps you understand the structure of your current location.
Switching between drives
If your computer has multiple drives — such as C: for your main drive and D: for an external drive or second hard drive — you can switch between them by typing the drive letter followed by a colon. For example, typing d: moves your prompt to the D: drive. Once you are on that drive, you can use cd normally to navigate its folders.
You can also jump directly to a folder on a different drive by typing the full path. For example, cd D:\Backups\Photos switches to the D: drive and moves into the Backups\Photos folder in one command. If the path does not exist on that drive, Command Prompt returns an error.
Frequently Asked Questions
What does "The system cannot find the path specified" mean?
This error appears when the folder you typed does not exist in your current location, or when you misspelled the folder name. Check the spelling and use dir to see what folders actually exist where you are. If the folder is on a different drive, make sure you switched to that drive first with the drive letter command.
Can I use forward slashes instead of backslashes in paths?
In newer versions of Windows Command Prompt, forward slashes sometimes work, but backslashes are the standard and always reliable. To avoid confusion and errors, always use backslashes when typing paths in Command Prompt.
How do I get back to my user folder quickly?
Type cd %userprofile% to jump directly to your user folder from anywhere. This works because %userprofile% is a system variable that always points to your home directory, so you do not have to remember or type the full path.
What if I want to change to a folder on a USB drive or external hard drive?
External drives appear as drive letters just like internal drives. Plug in the USB drive, then type the drive letter followed by a colon — for example, e: — to switch to it. Then use cd to navigate its folders normally. Use dir first to see what folders exist on the drive.