Type cd /d C:\ and press Enter to switch to the C: drive root in Command Prompt. The /d switch is the part most people miss, because plain cd C:\ only changes the folder on your current drive.

Command Prompt keeps a separate working folder for each drive. Without /d, typing cd C:\ while you are on D: leaves you on D: and quietly changes the remembered folder for C: instead. The prompt still shows D:\>, and nothing seems to have happened.

Use the Right Command for Your Starting Point

The command you need depends on where you are now. Check the letters before the > sign at the prompt.

  • Already on C:, any folder: type cd \ and press Enter. This moves you to the root of the current drive, so C:\Users\Name becomes C:\ in one step.
  • On another drive, such as D: or E:: type cd /d C:\ and press Enter. The /d tells Command Prompt to change the drive as well as the folder.
  • On another drive and you prefer typing less: type C: and press Enter. This switches to whatever folder you last used on C:, which may not be the root.

After any of these, the prompt should read C:\>. That is your confirmation the change worked.

Understand Why cd C:\ Fails From Another Drive

Each drive in Command Prompt has its own current directory. When you type cd C:\ from D:, the command does not move you. It records C:\ as the folder to return to the next time you switch to C:. The visible prompt stays on D:.

This design is old and deliberate. It lets you jump between drives without losing your place on each one. The /d switch overrides it by performing both actions at once: change the drive, then set the folder.

You can confirm the behaviour yourself. From D:, type cd C:\, press Enter, and watch the prompt stay on D:. Then type C: and press Enter. You land in C:\, because the earlier command stored that folder. This is harmless, but it explains the confusion.

Switch Drives and Folders in One Line

You do not have to go to the root first. Combine the drive change with a folder path to land exactly where you want.

  1. Type cd /d C:\Users and press Enter to go straight to the Users folder on C:.
  2. Type cd /d C:\Windows\System32 to reach a deeper folder in a single step.
  3. Type cd /d C:\ to return to the root whenever you need a clean starting point.

If a folder name contains a space, wrap the whole path in double quotes, as in cd /d "C:\Program Files". Without quotes, Command Prompt reads only the first word of the path and reports that the path cannot be found.

Check Where You Are Before and After

Type cd on its own and press Enter to print the full path of your current folder. Type C: and press Enter to see the prompt change. Reading the prompt is the quickest check: the letter and path before > are always your current location.

Fix the Errors That Appear

Most failures come from three small slips. Each has a simple fix.

  • "The system cannot find the path specified": the folder name is wrong or contains an unquoted space. Type dir C:\ to list what actually exists at the root, then copy the exact name.
  • The prompt does not change: you left out /d while on another drive. Retype the command with the switch included.
  • "Access is denied": the folder exists but your account cannot open it. Choose a folder you have permission to use, or open Command Prompt as administrator through the Start menu.

If cd /d C:\ returns nothing at all and the prompt still shows another drive, check for a typo in the drive letter. Only letters that appear in File Explorer as drives will work.

Know When You Need Administrator Rights

Changing to C:\ itself never requires elevated rights. You can move to the root of any drive as a normal user. Problems start when you try to enter protected folders such as C:\Windows or another user's profile.

If a command needs administrator rights, open Command Prompt from the Start menu by right-clicking it and choosing the run-as-administrator option. The window title will say Administrator. Labels can differ slightly by version of Windows, so look for the wording about running as administrator.

For everyday work, stay in your own user folder, such as C:\Users\YourName. That is where your documents and downloads live, and you will not hit permission errors there.

Use the Root as a Reliable Starting Point

The root of C: is a useful home base. From C:\>, every path you type is predictable, because it starts from the top of the drive. Scripts and instructions often assume you begin there.

A simple habit: when a set of instructions tells you to run commands from C:\, type cd /d C:\ first, press Enter, and confirm the prompt reads C:\>. Then follow the steps in order. This removes one common source of confusion before you begin.

To go back to a folder you used earlier, type cd followed by the full path, or use pushd and popd to save and return to a location. For most tasks, though, the root plus a full path is enough.

Quick Answers to Common Follow-Ups

Does cd /d C:\ work from any drive?

Yes. The /d switch changes the drive and the folder together, so it works whether you start on D:, E: or anywhere else.

Why does my prompt show C:\Users\Name instead of C:\?

Command Prompt opens in your user folder by default. Type cd \ and press Enter to move up to the root.

Can I change to C:\ in PowerShell the same way?

PowerShell uses Set-Location C:\ or simply cd C:\, and it changes drives without a special switch. The /d flag belongs to Command Prompt only.

What if the drive letter is different on my PC?

Use whichever letter File Explorer shows for your main drive. The command is the same; only the letter changes.