Windows 7 open command prompt from right click context menu

Windows XP had the PowerToys, which added useful functionality to the system. One of my favourites was the "CMD Shell here" PowerToy, which opened a cmd prompt with its working directory set to the folder you were in.

Vista incorporated this into the OS, obviating the need for a PowerToy. I was happy with this. Then I installed Windows 7 and the option has disappeared from my context menu.

After a quick search I've come across the following:

  • Holding shift down when right clicking on a folder brings up a few extra options, one of them being "Open command prompt here"
  • Save the following as a .reg file, then right click -> merge it to add an entry to the context menu which creates an elevated (Admin privileges) command prompt:
    Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOTDirectoryshellrunas]
    @="Open Command Window Here (Administrator)"
    
    [HKEY_CLASSES_ROOTDirectoryshellrunascommand]
    @="cmd.exe /s /k pushd "%V""

Read the articles about Windows 7 right click command prompt and elevated command prompt.

About johnny

Computers have interested me since I can remember and conveniently I studied computer science. I also enjoy performing in a local amateur theatre group and cycling. This is where I post solutions to problems I've had in the office or any other project, hopefully clearly enough to refer back to in the future.
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>