Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Using cd Command in Windows Command Line, Can’t Navigate to D:\

Somehow cd command is not working in windows command prompt when I want to change the drive.

For example if I'm in:

C:\Program Files\Windows Resource Kits\Tools>

with command

cd d:\

It doesnt take me to d: drive but it stays in

C:\Program Files\Windows Resource Kits\Tools>

If I try cd.. or cd\ or trying to change the directory within the drive that works.

Any help?

share|improve this question

marked as duplicate by Synetech, Canadian Luke, allquixotic, 8088, bwDraco Dec 1 '12 at 1:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 27 down vote accepted

When changing drives, you just need to type the drive letter, like d: (EDIT: don't use the backslash, like d:\; it doesn't work). You only use cd when moving between directories within a drive.

share|improve this answer
Actually, D:\ (extra space to escape the slash) does not work. Only D: does. – Hello71 Jul 19 '10 at 16:41
Haha, yeah, I just caught that. – jrc03c Jul 19 '10 at 16:42

If you are going into a folder on another drive, why not simply type

cd /d d:\someFolder\anotherFolder

The /d switch is specified in cd /?

Use the /D switch to change current drive in addition to changing current directory for a drive.

share|improve this answer
Worked for me! Though I'm finding myself wishing it wasn't so picky. – thure May 1 '13 at 22:29
This worked for me even when cd d: didn't, thanks! – Dan Nov 15 '13 at 19:58

This is a known 'feature' dating back to the DOS ages. Put simply, you have one 'active directory' for each drive. cd changes the active directory for that drive only. For example, cd C:\WINDOWS changes the active directory of the C: drive to \WINDOWS. To change to another drive, you would use something like A: to change to the A drive.

share|improve this answer

Other option: pushd d:\

for return to a previos directory: popd

is possible also, go to a "unc" directory, for example: (creates a temporary Z: drive) pushd \\localhost\mydir

share|improve this answer
work like a charm. thanks – pir abdul wakeel Jul 29 '15 at 11:58

Not the answer you're looking for? Browse other questions tagged .