Right Click to Open a Command Prompt

Contributor Icon Contributed by davak Date Icon November 27, 2003  
Tag Icon Tagged: Windows

This recipe describes how to open a command prompt by right clicking on a folder in explorer.


Many of us command prompt guys still like to drop to the command console for particular tasks. Executing cmd.exe from the RUN box still forces you to navigate to the particular folder in question. Wouldn’t be easier to just right click on a folder to open a command prompt in that particular directory?

Manual Method:
(This requires editing your registry. If you are not familiar with registry editing, this isn’t for you… so skip to the easy method below)
1. Open regedit
2. Navigate to HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell
3. Create a new key called Command Prompt
4. Your default value should be Command Prompt Here
5. Create a new key called Command under the Command Prompt key
6. Your default value should be cmd.exe /k pushd %L

Your popup menu when you right click on a folder will now contain an option called Command Prompt Here which will open a command prompt in the selected folder.

Easy Method:
Microsoft also has developed this ability into one of its powertoys.

Previous recipe | Next recipe |
 
  • zero cool
    Do u no how to download net. net
  • risherz
    Hmm... I can't quite get what your question is... could you please simplify that question so that you can get better answers.

    What do you mean by net. net? are you referring to Microsoft's .NET framework? or is it something else. As the topic is "Command Prompt" and the question is something else...

    If you are talking about the .NET framework by any chance then you can get it over here

    http://msdn.microsoft.com/netframework/downloads/updates/

    Please simplify/ clarify the question if this is not the answer you wanted.

    Hope this helps :D
    Risherz
  • Harry Broekhof
    Works like a charme! Thank you.
  • Kevin
    Current PowerToys page:
    http://www.microsoft.com/windowsxp/downloads/po...

    Specifically, the "Open command window Here" tool.
    Cheers.
  • DellaMedia
    Works Great! Simple and very effective!
blog comments powered by Disqus