2005-11-14

Effing CD Command

This bites me every couple of weeks: the cd command in the Windows command shell (cmd.exe) does not treat directories and drives consistently. After all these years of working in Windows, you'd think that I should have engraved into my mind that when I want to use a directory in another drive, I should type either drivename: then cd path or cd /d drivename:\path. Then I forget and I blithely type cd drivename:\path. Even worse is that cd does not give an error message that it has not changed the current directory.

17-Jan-2008: In PowerShell 2.0, the cd command (alias of Set-Location) now consistently changes drives and directories. Hoo-ray!

No comments:

Post a Comment