Command Prompt on Right-Click Menu


This trick shows you how to add an option called "Command Prompt" when you right-click on a folder in Windows. With this option, a Command Prompt Window will launch and its current directory will be the path to the folder you've selected.

You can manually edit the registry:

  1. Start > Run
  2. Enter "regedit" and hit Enter
  3. Expand to "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell"
  4. Right-click on "shell" and select New > Key
  5. Make sure a new key is created under "shell". Change the name of this key to "Command Prompt"
  6. Right-click on this new key "Command Prompt" and select New > Key
  7. Change the name of this key to "command"
Here's what we should have: 




  1. Double-click on the "(Default)" text on the right window to bring up the edit box
  2. Enter this text into the Value Data field:
    cmd.exe "%1"
  3. Click OK and close the registry. 
 Now check and you'll see like below