Jump to content

Recommended Posts

Posted

Microsoft PowerToys for Windows XP

Open Command Window Here

This 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 :no: or here with respect to the code in its entirety. Those who wish NOT have more junk left behind by installers, :yes: 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\""


Posted

You only need the first four lines or the last four lines, preferably the last four, these are automatically added to the 'other' location.

Posted

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.

Posted

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"

Posted (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=off

and also included in

MSFN - Registry Tweaks Part 3

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\*\shell

Edited by maxXPsoft
Posted
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=off

Those finds all over the net are not "comprehensive" hence me mentioning "code in its entirety" above :P 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? :unsure:

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\*\shell

Can you post the keys from \HKEY_CLASSES_ROOT\*\shell? Thanks :hello:

Posted (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 method

BTW 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 by maxXPsoft

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...