Right Click to Open a Command Prompt

Home -> Windows

34178 views

From the computer of: davak (396 recipes)
Created: Nov 27, 2003     Updated: Jul 18, 2004


2 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




2 Recipe comments: View comments

command prompt by Anonymous
Re: command prompt by risherz



Related recipes:

  Vista: Command Prompt Here
  Open Explorer Window from Command Prompt to Your Current Location
  Add CMD To Right-Click of My Computer
  CMD: Display Command Line/DOS History in XP/2000/NT
  Vista: Create an Administrative Command Prompt Shortcut
  Vista: How to Extract Content from MSI Files
  Windows: Uninstall an Application from the Command Line
  Execute System Restore from the Command Line / Safe Boot
  Vista: Restore the Hibernate Option
  Vista / Server 2008: Enable or Disable Firewall from the Command Line

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.