Slideshow: Add the command window option to Windows Explorer with a registry tweak
Image 1 of 7
Context Menu
ntThe 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
ntIf you hold the shift key down and right-click a folder you will get more menu options on the list.
n
ntThis 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
ntRegistry edit
n
ntStandard 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.
n
ntIn 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:
n
ntHKEY_CLASSES_ROOT\Drive\shell\cmd
Rename the Extended key
ntIn 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
ntTo add the “open command window here” feature to folders displayed in Windows Explorer, navigate to this key in the registry editor:
n
ntHKEY_CLASSES_ROOT\Directory\shell\cmd
n
ntOnce 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
ntClose 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 window here” as one of your available options.
command window
ntCommand window.
-
Account Information
Contact Mark W. Kaelin
- |
- See all of Mark W.'s content