How to start Command Prompt By Right Clicking a Folder

Many users works on command prompt to perform some critical system tasks. When command prompt start it loads into users home directory so we need to change our working directory from home directory to the specific directory manually, but every time doing so is tedious work and a long process.

So overcome this problem we need to start command prompt directly from the directory we need to work with so below are steps to add command prompt to the shell menu and open it directly in that folder.

Note:-These steps works with Registry Editor so be careful while performing the steps.

  • Click Start, click Run, type regedit, and then click OK.
  • Locate the following registry key: 
            HKEY_CLASES_ROOT\Directory\shell
    (we need to open command prompt from the directory so we are working with Directory's shell)
  •  Right-click the shell key, point to New, and then click Key.
  • Name the new key OpenNew.
  • Click the OpenNew key, and then double-click the Default value in the right pane.
  • Change the value to Command Prompt. Click OK.
  • Right-click the OpenNew key, point to New, and then click Key.
  • Name the new key Command.
  • Double-click the Default item in the right pane.
  • Change the value to cmd.exe /k cd %1.
         (/k to start the cmd and execute the command and cd %1 to open the cmd from the specified folder)

That is all now we  can open the command prompt by Right clicking any folder just as shown above.

    No comments:

    Post a Comment