1

I'm trying to set a default path in the windows command prompt but my CD command seems to be ignored. I'm not getting any error/warning either. What am I doing wrong? The contents of the prompt -after 2 attempts- are:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Work>cd "D:\Downloads\xlrd-0.9.0.tar\dist\xlrd-0.9.0\x
lrd-0.9.0"

C:\Documents and Settings\Work>cd D:\Downloads\xlrd-0.9.0.tar\dist\xlrd-0.9.0\xl
rd-0.9.0

C:\Documents and Settings\Work>

Here's a screenshot of what has been going on:

https://dl.dropbox.com/u/116120595/command_prompt_trouble.jpg

gparyani
  • 1,881

2 Answers2

4

Your cd command worked just fine, but you're still looking at the wrong drive.

Type: d: to switch to that drive.

Or, include /D to change the drive in addition to changing the folder:

cd /D D:\Downloads\xlrd-0.9.0.tar\dist\xlrd-0.9.0\xlrd-0.9.0
Arjan
  • 31,511
2

This is intended behaviour for windows.

On just about any operating system 'cd' (change dir) changes to the new directory.

On windows it only does that for a volume, but it does not change to that volume.

If you are on the C: volume (as in your screenshot) and then do a cd d:\foo then you stay in your current folder. You will need to follow it up with d: to actually change to the newly set place.

Hennes
  • 65,804
  • 7
  • 115
  • 169