Jamie Johnson
Jamie Johnson

Reputation: 3

CMD won't execute basic CD \

I cannot get CMD or powershell to access anything beyond the first sub directory on a drive without typing the full path. Keeps telling me the system cannot find the specified path.

i.e. This works:

d: cd \dev jobs

and this works:

d: cd \dev jobs\sites

but this doesn't work

d:\dev jobs> cd \sites

I'm running latest windows 10. c: is my system drive replicated this proess in the c drive directory and met with the same results

(Please, I'm not asking how to change directories but rather understand why the command line seems to be misbehaving)

Any ideas or suggestions on where to start?

Thank you for your help

Upvotes: 0

Views: 71

Answers (1)

tsg
tsg

Reputation: 205

Why the unuseful comment vote? That's the right answer.

If you are in d:\dev jobs and you cd sites, it will work. From d:\dev jobs, cd \sites does not work because it is looking for sites in the root folder (ie. d:\sites).

You want to use a relative path there.

Upvotes: 1

Related Questions