0

This is essentially a duplicate of this question, with the difference that the answer given does not seem to work. I also want to use a batch script to change the directory, but the given answer does no work:

cd /C C:\Users
The specified path is invalid.

What am I missing?

Community
  • 1
  • 1
Alex
  • 41,580
  • 88
  • 260
  • 469

1 Answers1

2

cd /C c:/Users does not work for me either

But

cd /D c:\Users

...works fine, as described here: How to change current working directory using a batch file

Syntax:

CD [/D] [drive:][path]
CD [..]
Community
  • 1
  • 1
Martin G
  • 17,357
  • 9
  • 82
  • 98
  • Yes, it would be good to know that `/D` is an option and not some obscure 'thing'. You never can be sure if expressions are options like `/D` or `-d` or `--d` or wahtever, or some crazy windows batch exception. – Alex Jul 24 '14 at 05:55