Pin Command Prompt in Windows Right-Click Context Menu
If you work in command prompt so often, then one thing should make you bore. You have to change the directory typing the syntax in command line. If the directory location is so deep in the explorer tree then it is always a hassle. But a simple registry tweak lets yo to open the directory in command prompt, directly from the Windows explorer tree, by right-clicking on it. This works in both Windows 7 and XP. Let me describe.
This article is about to edit Windows registry. So keep a backup of your registry to be in safe side.
Read also: Make Bootable Image(ISO) Of Windows XP Service Pack 3.
How to pin Command Prompt in Right-Click Context Menu
Press Win key+R and Type “regedit”. Now in the registry editor navigate to
HKEY_CLASSES_ROOT\Directory\shell

Now follow the steps below:
1. Select New > Key by right clicking on “Shell”.
2. Rename the new key as “Command Prompt” ( excluding the quotes ).
3. You can see the “Default” string in the right pane selecting the key, you’ve just created.
4. Double click on “Default” and type “Open in Command Prompt” in the “Value data” field.

5. Again create another key under “Command Prompt” in the similar way and rename it as “Command”.

6. Double click on “Default” after selecting the key “Command” and put the following command in the “Value data” field.
cmd.exe /k cd %1
7. Click on OK.
Voila! You are done. Now right-click on any folder in your computer and select the option “Open in Command Prompt”. It will automatically open the command prompt under that folder.

If you don’t like to edit your registry then you can use an application Powertoy, provided by Microsoft.
Let me know which process do you like?





Reader Comments
I do like your website. most of contents posted are what I preferred.