Skip to content


Open command prompt for specific folder using Windows Explorer (Command To Here)

I often find myself in the situation where I wish to open a commandprompt in a certain folder, so I don’t have to add my folders to the system path variable.

I like to have a “Command to Here” menuitem when I right-click on a folder in Windows Explorer.

This is how it can be done. It can be done in several other ways as well, but this is my favorite:

1: Click the Windows start button and hit “Run”, and enter “regedit” to start editing the registration database

2: Go to “HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell”.

3: Create a key and call it “Command Prompt”.

4: The default value should be whatever you want the text to be in the menu when you right-click a folder.

5: Within “Command Prompt” make a new key named “command”

6: Set default value to “cmd.exe /k pushd %1″

This menuitem appears immediately

  • Delicious
  • Digg
  • Twitter
  • Facebook
  • LinkedIn
  • TechNet
  • StumbleUpon
  • NewsVine
  • Technorati Favorites
  • Slashdot
  • MSDN
  • Share/Bookmark

Related posts:

  1. How To Copy DLL files out of GAC (Windows Assembly), Using Explorer Or Command Line
  2. stsadm is not recognized as an internal or external command, operable program or batch file.
  3. Stsadm is not recognized as an internal or external command, operable program or batch file.
  4. Stop / deactivate beep in Windows
  5. The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID…

Posted in Windows.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.