How to Add A Command-Prompt to Right-Click Context menu of Every Folder

If you use the command line window a lot, this hack will let you open a command prompt at the selected directory. This trick will add a right click context menu option for opening Command Prompt in every folder. To perform this registry hack..

Navigate to:


Create a new sub-key called Command under the main key (that is, the new key will be HKEY_CLASSES_ROOT\Directory\shell\Command).

command prompt in context menu of folders

Change the value of  “(Default)” within that key to the text you’d like on the right-click menu.

For example,  “Open A Prompt Here!”

Create another, new sub-key under the key created above, again called “command” (so this key will be

Change the value of “(Default)” here to  “cmd.exe /k cd %1”, without the quotes. Now right-click on a folder, and voila! you can see an option to open command prompt.


Leave a Reply