Open a command line in any folder

CmdHere.exe is included in Powertoys for XP, however, there’s nothing similar available for a download for Windows 2000 and other systems. For development purposes this option is quite efficient, as it allows one to instantaneously get a command line in some folder with awful path name like C:\Documents and Settings\Yourfirstname YourLastname\My Documents\Coding, to which one would cd for several hours if starting at the root.

These few lines saved as .reg file and then run against the Registry (by simply double-clicking) allow that option for Windows 2000:

REGEDIT4

[HKEY_CLASSES_ROOT\*\shell\cmdhere]
@=”Cmd&Here”

[HKEY_CLASSES_ROOT\*\shell\cmdhere\command]
@=”cmd.exe /c start cmd.exe /k pushd “%L\..”"

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere]
@=”Cmd&Here”

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere\command]
@=”cmd.exe /c start cmd.exe /k pushd “%L”"

Posted in Programming at September 26th, 2004. Trackback URI: trackback

No Responses to “Open a command line in any folder”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>