#StackBounty: #windows #windows-registry #context-menu Windows Explorer: Context menu to a especific folder (background)

Bounty: 50

(This is not a duplicate – I have checked before asking)

Both .reg commands add a custom item entry to a folder context menu:

1. Context menu to folders:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryshellmy custom command]
@="My command name"
"AppliesTo"="C:\My specific Folder\"

[HKEY_CLASSES_ROOTDirectoryshellmy custom commandcommand]
@="cmd.exe /s /k pushd "%V""

2. Context menu to folder background (empty area of a folder):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryBackgroundshellmy custom command]
@="My command name"
"AppliesTo"="C:\My specific Folder\"

[HKEY_CLASSES_ROOTDirectoryBackgroundshellmy custom commandcommand]
@="cmd.exe /s /k pushd "%V""

The line "AppliesTo"="C:\My specific Folder\" set which specific folder the menu entry will appear.

The problem is in (2) it won’t accept "AppliesTo"="C:\My specific Folder\". If I put that registry value ("AppliesTo") the menu entry won’t appear at all.
How do I set a specific folder to (2)?


Get this bounty!!!

Leave a Reply