![why](/static/img/x1mno0Ukhc-600.jpeg)
Right, so we all know our trusted little command, “cd”, to change directories in the DOS shell of Windows, right?
Well, I was in for quite a surprise today when I could not change to any directory at all. I kept on trying doing a simply:
[code]C:>cd D:somedir
D:somedir
C:>
[/code]
As you can see, I was still in the “C:” drive. Needless to say, I was totally baffled and didn’t know what was going on here. So, a little trip to the manual for “cd” revealed that Microsoft changed our little well know “cd” command to “cd /d” in order to change the drive!
Low and behold, this now works as:
[code]C:>cd /d D:somedir
D:somedir>
[/code]
What the hell? Thank you Microsoft for wasting (another) 30 minutes of my live.
Hope this helps anyone out there.