Open a Command Prompt From Any Folder

Tired of launching a command prompt window, only to have to type in folder names to get where you want to be? Well, this tutorial will guide you though making it possible to launch a command prompt from any folder on your computer. This way when the command prompt opens, it is already in the directory you wish to be in. (Note: This tutorial involves modifying the Windows Registry and if you do not feel comfortable doing this, please do not continue as we can not be held responsible for any mistakes that are made. Thank-you)

command_prompt_anywhere_01

To begin, click on your start menu and select Run…

command_prompt_anywhere_02

This window will open. Clear whatever text is in it and type “regedit” as above.

command_prompt_anywhere_03

This will open the above pictured window. This is the Windows Registry Editor. You can change some pretty awesome settings as well as render your OS incapable of booting, so please follow these instructions carefully. We need to locate the following key:
HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell
To do this, start by Expanding (hitting the plus next to..)HKEY_LOCAL_MACHINE

command_prompt_anywhere_04

Next, expand SOFTWARE

command_prompt_anywhere_05

Then, expand classes

command_prompt_anywhere_06

Scroll down to locate “folder”. Expand “folder”.

command_prompt_anywhere_07

Now we can see our source location for this guide which is “shell”

command_prompt_anywhere_08

Right-click on “shell” and highlight “New” and select “Key”

command_prompt_anywhere_09

It will create the key and allow you to name it. Call it “Command Prompt”

command_prompt_anywhere_10

On the right pane you will see a REG_SZ called default. Double-click on it.

command_prompt_anywhere_11

This box will pop up. This is where you type what you want to appear on the menu when you right-click on the folder in which you want to open the command prompt. The nice thing is if you feel that you want to change the name some time down the road. You can simply come back to here and rename this key to what-ever you would like.

command_prompt_anywhere_12

Next, create a new key within our “Command Prompt” Key that we made earlier. To do this right-click in the right pane and hover over new and select “key”.

command_prompt_anywhere_13

Name this key “command”

command_prompt_anywhere_14

Once you select “command” you will see the “Default” key on the right. Double click on it to enter in the default data.

command_prompt_anywhere_15

This time make the default data:
Cme.exe /k pushd %L
This is the last step of editing the registry. You can now close out of the Registry Editor.

command_prompt_anywhere_16

If you have any folders on the desktop, we can use those, if not go to my documents and find a folder to try it on. Right click on the folder as shown above, you should now see the key that you made in the menu. (In mine “Anything You Like” is the second one down.)

command_prompt_anywhere_17

When your command prompt window opens, your directory should now be whatever folder that you selected, as shown above. I hope this tutorial will be helpful and was easy to follow. Thank-you for reading.