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...
Under Windows-10, go to All Apps, Windows System and the open the Command Prompt window. From the command prompt change directory to the batch file directory: cd \Tutorial\batch. Then type the name of the batch file test_conc followed by Enter.
You can change dir from c to d with simple command
C:\> d:
Then you will get
D:\>
cd /d "C:\"
is the answer
Credit go's to Peter Wright
The parameter is always /d
(for "drive"), so you need to do
D:\>cd /d C:\
instead of
D:\>cd /c C:\
To change D:
drive to C:
drive, type just c:
:
d:\\>c:
c:\\>
To change c:
drive to d:
drive, d:
:
c:\\>d:
d:\\>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With