2
1
I am a Windows noob here (coming from a linux background.) I am having a problem in the cmd prompt changing to a directory on a different drive. Either I haven't found any suitable answers for this particular scenario or I'm not searching with the correct terms. Here is the scenario...
I am on C:\
and I want to change to a directory say E:\specific\directory
.
I know about the /E
switch for cd
, but it's not working in this case.
More, I have C:\
and D:\
on an SSD and my E:\
is on an HDD, so they're on two different physical harddrives.
I can do
C:\> cd /D D:\specific\directory
with no problem, but trying to
C:\> cd /E E:\specific\directory
I get the error The filename, directory name, or volume label syntax is incorrect.
The only way it lets me on the E:\
drive is with two commands i.e. if I do C:\> e:
first, then it lands on the E:\
drive, then with a second cd
command I can navigate to whatever directory I want on E:\
. So is there any way that I can navigate from C:\
to a specific directory on E:\
in one command rather than two?
Thanks!
Incidentally, you should bookmark SS64 on CMD as an excellent on-line reference for the Windows command line - Windows still doesn't have a useful
– Jeff Zeitlin – 2018-04-12T14:43:16.860man(1)
command...You could use Linux on Windows 10. See Install the Windows Subsystem for Linux.
– harrymc – 2018-04-12T15:01:46.910Thank you @JeffZeitlin and EBGreen for your answers. However, I think you both may have missed a small detail in my question, and I also figured out what my problem was. I was using the command
C:\> cd /E E:\specific\directory
where I thought the switch flag was to use the letter for which drive you wanted to switch to, i.e. switch /E for the E:\ drive. But no, the actual flag is /D, so the command should beC:\> cd /D E:\specific\directory
. – crob – 2018-04-12T15:02:55.463I was just about to post that, crob - I've been a DOS user since the 80's and I did not know about the /d option until just now after doing a cd /? and reading the help and testing it out myself. Learned something new. – Bill Hileman – 2018-04-12T15:08:59.693
That is literally what @JeffZeitlin has in his answer – EBGreen – 2018-04-12T15:55:56.130