Google

2006-04-22

Open Command Prompt Here

On my XP box, when I browse to a folder where I need to open a command prompt, I just right click and have the option "Command Prompt Here'. That's available because I installed Windows XP Power Toys, which includes "Open Command Window Here" (aka cmdhere) toy.

It's possible to do the same on Windows 2003 and you can do it too:
  1. Open regedt32 and navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell folder.
  2. Add a new key called “Command Prompt“
  3. Modify the default custom string to read “Open Command Window Here“
  4. Add a new key to this folder called “command“
  5. Modify the default custom string to read: Cmd.exe /k pushd %L
  6. Changes will take effect immediately

Or just copy the lines below to a text file and rename it as something like "cmdhere.reg". Then, when you click (or double click) it, you will have the option to import it...

------ Include all lines below this line -----
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\CMD]
@="Open CMD Here"

[HKEY_CLASSES_ROOT\Folder\shell\CMD\command]
@="cmd.exe /k pushd %L"
------ Include all lines above this line -----
Post a Comment