Context Menu

The default behavior for Windows Explorer in Windows 7 and Vista is to display a context menu when you right-click a folder.

Shifted Context Menu

If you hold the shift key down and right-click a folder you will get more menu options on the list.

This behavior is all well and good, but what if you want to have access to the “open command window here” command with just a right-click versus the shift-right-click it requires by default? The answer involves a Windows Registry file edit.

Registry editor

Standard disclaimer:The Windows Registry File is vitally important to the proper operation of the Windows operating system. Please backup the file before you make any registry edits.In Windows 7, click on the Start button and type regedit in the search box. Click on the regedit.exe file in the list of items and answer the UAC prompt. Once in the registry editor, navigate to this key:

HKEY_CLASSES_ROOT\Drive\shell\cmd


Rename the Extended key

In the right-hand pane, right-click the Extended key to rename it to anything else besides Extended. Or you can simply delete the key, but doing so will make it more difficult to return to the default settings. This change adds the feature to drive icons in Windows Explorer.

Rename the Extended key here too

To add the “open command window here” feature to folders displayed in Windows Explorer, navigate to this key in the registry editor:

HKEY_CLASSES_ROOT\Directory\shell\cmd

Once again, in the right-hand pane, right-click the Extended key and change the name to anything else or delete it complete is you are so inclined.

Open command window here is now available

Close the registry editor and from now on, when you right-click a drive or a folder from within Windows Explorer you will see “Open command windowhere” as one of your available options.

command window

Command window.

\