Thursday, October 23, 2008

Open Command Prompt From Any Folder

Yes, You heard it right.It is 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)

  • Goto Run and type "regedit".
  • Next goto HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell.
  • Here, we can see our source location for this guide which is "shell".
  • Right-click on “shell” and highlight “New” and select “Key”.
  • It will create the key and allow you to name it. Call it “Command Prompt”.
  • On the right pane you will see a REG_SZ called default. Double-click on it.
  • A box will popup where you type the name what you want to appear on the menu when you right-click on the folder in which you want to open the command prompt.
  • 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”.
  • Name this key “command”.
  • Once you select “command” you will see the “Default” key on the right. Double click on it to enter in the default data.
  • Enter this as the default data (withour the quotes) "Cme.exe /k pushd %L".

Now close everything and right-click on any folder. You will be able to see the option of command prompt which will open the prompt with the address of the current directory.

No comments yet

Tips Tricks And Collections Headline Animator