The cd command moves you to a different folder
To change folders in Command Prompt, type cd followed by a space and the folder name or path you want to move to, then press Enter. The letters "cd" stand for "change directory" — a directory is what Command Prompt calls a folder. Once you press Enter, your location in the folder structure changes, and the prompt updates to show where you are.
The folder you move to must exist inside your current location, or you must give Command Prompt the full path to reach it. If you try to change to a folder that does not exist or that you do not have permission to access, Command Prompt will tell you the system cannot find the path specified.
Key Takeaways
- Type cd foldername to move into a folder that is inside 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 hard drive, or cd C:\Users\YourName\Documents to jump to any full path.
- Type dir to see what folders exist in your current location before you try to change into one.
Moving into a folder inside your current location
When you open Command Prompt, you start in a default folder — usually C:\Users\YourName. To move into a folder that sits inside this location, type cd followed by the folder name. For example, if you have a folder called Documents inside your current location, type cd Documents and press Enter. The prompt will now show you are inside the Documents folder.
Folder names with spaces need special handling. If the folder is called "My Files", type cd "My Files" with quotation marks around the name. Without the quotes, Command Prompt will think you are trying to change to a folder called "My" and will fail.
Moving up to the parent folder
To move backward one level — from Documents back to the Users folder that contains it — type cd .. (the letters "cd" followed by two periods with a space between them). Each time you type this and press Enter, you move up one folder level. If you are deep inside nested folders, you can type cd ..\.. to move up two levels at once, or cd ..\..\.. to move up three levels.
This is useful when you have navigated several folders deep and want to get back to a higher level without typing out the entire path.
Jumping to any folder using the full path
Instead of moving one folder at a time, you can jump directly to any folder by typing its full path. A full path starts from the root of your drive and lists every folder in the chain. For example, cd C:\Users\YourName\Documents\Projects\Work takes you directly to the Work folder, no matter where you are now.
You can also jump to a different drive. If you have a second hard drive or external drive labeled D, type cd D:\ to move to the root of that drive. Then type cd followed by the folder path on that drive.
Checking what folders exist before you change
Before you try to change into a folder, you can see what folders are available in your current location. Type dir and press Enter. Command Prompt will list all the files and folders in your current location. Folders are marked with <DIR> next to their names. Once you see the folder name spelled correctly, you can type cd followed by that exact name.
This step prevents the "system cannot find the path specified" error. If you are unsure of the exact spelling or capitalization, running dir first shows you the real name to use.
Understanding the prompt display
The prompt itself tells you where you are. When you first open Command Prompt, it shows something like C:\Users\YourName>. The part before the > symbol is your current location. After you type cd Documents, the prompt changes to C:\Users\YourName\Documents>. This visual feedback confirms that your change worked.
If you type a command and get an error, check the prompt to see where you actually are. You may have changed folders without realizing it, or you may be in a location where the folder you are looking for does not exist.
Frequently Asked Questions
What does "system cannot find the path specified" mean?
This error means the folder you typed does not exist in your current location, or you misspelled the name. Type dir to see what folders are actually there, check the spelling, and try again. If you are using a full path, make sure the drive letter is correct and that every folder in the chain exists.
Can I change to a folder on a USB drive or external hard drive?
Yes. Plug in the drive, then type cd followed by the drive letter and path. For example, cd E:\Backups if your USB drive is labeled E. If you are not sure which letter your drive has, type dir at the root level to see all available drives.
How do I get back to the C drive after changing to a different drive?
Type cd C:\ to jump back to the root of your C drive, or type the full path to any folder on C. You can also type just C: to switch to the C drive, then use cd to navigate to the folder you want.
What if a folder name has special characters or numbers?
Type the name exactly as it appears, including numbers and special characters. If the name has spaces, wrap it in quotation marks: cd "Folder 2024". If you are unsure of the exact name, use dir to see it spelled correctly.