nospoon Posted November 10, 2005 Posted November 10, 2005 Microsoft PowerToys for Windows XPOpen Command Window HereThis PowerToy adds an "Open Command Window Here" context menu option on file system folders, giving you a quick way to open a command window (cmd.exe) pointing at the selected folder.Download: CmdHerePowertoySetup.exe (514 KB)We are all familiar with this tweak, but this post is for the record, since I have yet to find it anywhere on the net or here with respect to the code in its entirety. Those who wish NOT have more junk left behind by installers, here's the registry code for it :Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\shell\cmd]@="Open Command Here"[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]@="cmd.exe /k \"cd %L\""[HKEY_CLASSES_ROOT\Drive\shell\cmd]@="Open Command Here"[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]@="cmd.exe /k \"cd %L\""[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd]@="Open Command Here"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd\command]@="cmd.exe /k \"cd %L\""[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd]@="Open Command Here"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd\command]@="cmd.exe /k \"cd %L\""
Yzöwl Posted November 10, 2005 Posted November 10, 2005 You only need the first four lines or the last four lines, preferably the last four, these are automatically added to the 'other' location.
Crash&Burn Posted November 10, 2005 Posted November 10, 2005 Yeah I read about that before, regarding the registry, but can never remember which keys are "real" and which ones are just shortcut dupes heh.
JoeMSFN Posted November 10, 2005 Posted November 10, 2005 The "HKEY_CLASSES_ROOT" is just a "shortcut" to the real classes key which I can never remember, but from the looks of your post is "HKEY_LOCAL_MACHINE\SOFTWARE\Classes"
maxXPsoft Posted November 10, 2005 Posted November 10, 2005 (edited) I can't believe someone just finding that as I been using it for a very long time.Its all over the Net EX: http://www.google.com/search?as_q=Command+...ights=&safe=offand also included in MSFN - Registry Tweaks Part 3You're missing one that will allow you to open on a file on desktop BTW, If you want add the same to HKEY_CLASSES_ROOT\*\shell Edited November 10, 2005 by maxXPsoft
nospoon Posted November 13, 2005 Author Posted November 13, 2005 I can't believe someone just finding that as I been using it for a very long time.Its all over the Net EX: http://www.google.com/search?as_q=Command+...ights=&safe=offThose finds all over the net are not "comprehensive" hence me mentioning "code in its entirety" above I have only found bits and pieces, like two reg keys, and I wonder why I found eight in mine. As Yzowl mentioned though, you really need only the first four or last four, so I guess we are looking now at a complete set of code for this function as four lines? You're missing one that will allow you to open on a file on desktop BTW, If you want add the same to HKEY_CLASSES_ROOT\*\shellCan you post the keys from \HKEY_CLASSES_ROOT\*\shell? Thanks
maxXPsoft Posted November 16, 2005 Posted November 16, 2005 (edited) [HKEY_CLASSES_ROOT\*\shell\cmd]@="DOS HERE"[HKEY_CLASSES_ROOT\*\shell\cmd\command]@="cmd.exe \\\"%1\\\""[HKEY_CLASSES_ROOT\Directory\shell\cmd]@="DOS HERE"[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]@="cmd.exe /k \"cd %L\\\""[HKEY_CLASSES_ROOT\Drive\shell\cmd]@="DOS HERE"[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]@="cmd.exe /k \"cd %L\\\""I prefer this methodBTW if its a shortcut to say like Mozilla Firefox on desktop it open's the prompt in that folder. If its a file on the desktop it open's the prompt on desktop. much better Edited November 16, 2005 by maxXPsoft
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now