Question

Ok so here is a copy-paste of my CMD window

C:\Documents and Settings\Developer>cd /d "D:\"
D:\>cd /c "C:\"
The filename, directory name, or volume label syntax is incorrect.
D:\>

when I run cd /d "D:\" in C drive it works fine, but when I run cd /c "C:\" in D drive then I get a error

So how do I change the Directory back to C drive ??

EDIT:

Here is simpler "copy-paste" of my CMD window

C:\>cd /d "D:\"
D:\>cd /c "C:\"
The filename, directory name, or volume label syntax is incorrect.
D:\>

Doesn't make scene why its not working...

Was it helpful?

Solution 3

cd /d "C:\"

is the answer

Credit go's to Peter Wright

OTHER TIPS

The parameter is always /d (for "drive"), so you need to do

D:\>cd /d C:\

instead of

D:\>cd /c C:\

OK, I'll set it as an answer, then...

How about cd /d "C:\" rather than cd /c"c:\"

You can change dir from c to d with simple command

C:\> d:

Then you will get

D:\>

you can't use cd /x x:\ for your network drive, the command is always cd /d

To change D: drive to C: drive, type just c::

d:\\>c:    
c:\\>

To change c: drive to d: drive, d::

c:\\>d:    
d:\\>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top