Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My Explorer context menus are filled with various goodies that I use from time to time. I want to add another option to them, and I have done so, but I'm having troubles getting it to appear in one place.

What I have tried so far can be summarized with the following .reg file:

[HKEY_CLASSES_ROOT\Directory\Shell\MY_EXTENSION]
@="Open Thingy Here"

[HKEY_CLASSES_ROOT\Directory\Shell\MY_EXTENSION\command]
@="C:\stuff\thingy.exe \"%L\""

[HKEY_CLASSES_ROOT\Drive\Shell\MY_EXTENSION]
@="Open Thingy Here"

[HKEY_CLASSES_ROOT\Drive\Shell\MY_EXTENSION\command]
@="C:\stuff\thingy.exe \"%L\""

[HKEY_CLASSES_ROOT\Folder\Shell\MY_EXTENSION]
@="Open Thingy Here"

[HKEY_CLASSES_ROOT\Folder\Shell\MY_EXTENSION\command]
@="C:\stuff\thingy.exe \"%L\""

This almost works as intended: Right-clicking on a drive from My Computer, or a sub-directory from anywhere in Windows Explorer, correctly shows the context menu option.

However... If I Right-Click in the open whitespace of my current working directory does not produce the desired option. I know this is possible, because I've seen other options populate in this menu, including the standard Windows "Open command window here" which appears in the registry keys of HKEY_CLASSES_ROOT\*\Shell\cmd where * is Directory|Drive|Folder.

share|improve this question

marked as duplicate by Karan, soandos, Tog, Brad Patton, techie007 May 31 '13 at 20:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer

As it turns out, right-clicking the "background" of a directory in Windows Explorer populates from the registry keys:

HKEY_CLASSES_ROOT\Directory\Shell\Background
HKEY_CLASSES_ROOT\Folder\Shell\Background

Adding the appropriate keys to these two locations solved this issue.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.