blog.jj5.net (2003 to 2005)

cd /d to change drive and directory at the same time.

Tue Jan 20 14:01:00 UTC+1100 2004

Categories:

You can use the /d switch on the 'cd' (change directory) command at the command prompt to change drive at the same time. E.g.:

H:\>cd /d C:\Program Files
C:\Program Files>

Handy, in case you didn't know. I'm not sure what version of Windows support for this was added in, but I'm running Win2k, so at least anything after that I guess..

John.


Copyright © 2003-2005 John Elliot