Add a command prompt option to the default explorer right click on the context menu.

Posted by Ashish On 8 December 2008 No Commented

If you find that you frequently open command prompt window and change to a specific directory, you can add a command prompt to your shortcut menu. This option enables you to right click on a folder within Windows Explorer and choose the Command prompt, which opens a Command Prompt window with that folder as your active directory.
To add the command prompt option to the default right-click context in Windows Explorer, do the following:


  • Navigate in your registry to HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell and create a key called “Command Prompt” without the quotes.
  • Set the default string to whatever text you want to appear in the right-click menu.
  • Create a new key within your newly created command prompt named “Command”, and set the default string to Cmd.exe /k pushed %L. You may need to add %SyetemRoot%/ before the Cmd.exe if the executable file can’t be found.
  • The changes take place immediately. Right click on the folder and your new menu item will appear.

NOTE: You can do the same for Windows 98. Type in “c:\command.com /k pushed %L” (Without the quotes)



You may also like

Leave a Reply