To change directories in Command Prompt on Windows 10 or Windows 11, type cd followed by a space and the folder path, then press Enter, like cd Documents or cd C:\Users\YourName\Downloads. Use cd .. to go up one level and cd \ to go to the root of the drive. To switch to a different drive and folder at once, add /d: cd /d D:\Photos.
Common cd commands
| Command | What it does |
|---|---|
cd Documents |
Opens a folder inside the current folder |
cd C:\Users\Alex\Downloads |
Goes to a full path |
cd "Project Files" |
Opens a folder with spaces in its name |
cd .. |
Goes up one folder |
cd ..\.. |
Goes up two folders |
cd \ |
Goes to the root of the current drive |
D: |
Switches to drive D |
cd /d D:\Photos |
Switches drive and folder in one step |
cd |
Shows the current folder |

How to change directories step by step
- Press Windows + R, type cmd, and press Enter. Command Prompt usually starts in your user folder, like C:\Users\YourName.
- Type
dirand press Enter to list the folders here. - Type
cd, a space, and the folder name, then press Enter. - Repeat to go deeper, or use
cd ..to go back up.
Time-saving tips
- Tab completion: Type the first few letters of a folder and press Tab. Command Prompt fills in the name (and adds quotes if needed). Press Tab again to cycle through matches.
- Drag and drop: Type
cd(with a space), then drag a folder from File Explorer into the window to paste its path. - Open Command Prompt in a folder: In File Explorer, click the address bar, type cmd, and press Enter. On Windows 11, right-click in the folder and choose Open in Terminal.
- Jump and return:
pushd C:\Some\Foldersaves your place and moves you there.popdtakes you back.
Why cd isn’t working
- “The system cannot find the path specified”: Check the spelling, and use quotes around names with spaces.
- Nothing happens when changing drives:
cd D:\Folderdoesn’t switch drives on its own. Usecd /d D:\Folderor typeD:first. - Access denied: Some system folders need an administrator Command Prompt.
Changing directories in PowerShell and Windows Terminal
In PowerShell (the default in Windows 11’s Terminal), cd works too. It’s an alias for Set-Location. PowerShell also switches drives without /d: cd D:\Photos works directly. Use cd ~ to go to your user folder.
Frequently asked questions
Is cd the same as chdir?
Yes. chdir is the longer name for the same command.
Is cd case-sensitive in Windows?
No. cd documents and cd Documents go to the same folder.
How do I go to the Desktop in Command Prompt?
Type cd %USERPROFILE%\Desktop. If OneDrive backs up your Desktop, the path may be %USERPROFILE%\OneDrive\Desktop.
Do these commands work in Windows 11?
Yes. Every command here works the same in Windows 10 and Windows 11.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.