Tuesday, 25 August 2009

Change directory in windows cmd

Windows cmd.exe command line won't change directory won't cd

cd /d

I am in my c: drive (c:\tools) and do a:
C:\tools>cd d:\music
Strangly, I am still in the c: drive. Only if I do a d:, I see that I changed to the music directory under d:

In order to change both, the drive and the path, the /d flag must be used:
D:\music>cd /d c:\bin

Source: http://www.adp-gmbh.ch/win/cmd/cd.html

No comments: