Tuesday, December 12, 2006

Windows: Command Line From Here

I can't remember where exactly I found this at, but below is a useful little registry hack that will add a "DOS Prompt From Here" option in Explorer whenever you right-mouse click on a folder.

REGEDIT4
BLANK LINE GOES HERE
[HKEY_CLASSES_ROOT\Directory\shell\DosHere]
@="Command &Prompt:"
BLANK LINE GOES HERE
[HKEY_CLASSES_ROOT\Directory\shell\DosHere\command]
@="C:\\WINNT\\SYSTEM32\\cmd.exe /k cd \"%1\""
BLANK LINE GOES HERE
[HKEY_CLASSES_ROOT\Drive\shell\DosHere]
@="DOS &Prompt Here"
BLANK LINE GOES HERE
[HKEY_CLASSES_ROOT\Drive\shell\DosHere\command]
@="C:\\WINNT\\SYSTEM32\\cmd.exe /k cd \"%1\""

1 comment:

William Meloney said...

I liked the script but I had to change WINNT to windows in order for it to work on my WinXP system.