November 10, 200520 yr 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\""
November 10, 200520 yr You only need the first four lines or the last four lines, preferably the last four, these are automatically added to the 'other' location.
November 10, 200520 yr 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.
November 10, 200520 yr 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"
November 10, 200520 yr 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, 200520 yr by maxXPsoft
November 13, 200520 yr Author 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
November 16, 200520 yr [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, 200520 yr by maxXPsoft
Create an account or sign in to comment