If you use a lot the command line shell you may like to have a “Run Command Prompt from this folder/drive” context menu on explorer:

Run Command Prompt from this drive

How to do that? Registry hacking:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\\Directory\\shell\\CMDShortcut]
@="Run Command Prompt from this folder"

[HKEY_CLASSES_ROOT\\Directory\\shell\\CMDShortcut\\command]
@="C:\\\\WINDOWS\\\\system32\\\\cmd.exe /k cd \\"%1\\""

[HKEY_CLASSES_ROOT\\Drive\\shell\\CMDShortcut]
@="Run Command Prompt from this drive"

[HKEY_CLASSES_ROOT\\Drive\\shell\\CMDShortcut\\command]
@="C:\\\\WINDOWS\\\\system32\\\\cmd.exe /k cd \\"%1\\""

Just create a file called CMDShortcut.reg including the above content then doubleclick on it. That’s all.

I tryed to use %SystemRoot%\system32\cmd.exe instead of the actual path, but it didn’t work. Anyone knows why?


3 Responses to “Command line shortcuts on folder and drives.”  

  1. 1 Aleksey Gopachenko

    There is a “Command Prompt Here” powertoy from MS. It works for any folder.

  2. 2 luigi

    Thankyou. I didn’t know, I’ll check it out. I think, it does something like this.

  3. 3 Stef

    Thanks mate!

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=""> <s> <strike> <strong>



Calendar

July 2006
M T W T F S S
« Jun   Aug »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening