i have been looking around and its hard to find what i want. I am able to add context menu item to a FOLDER by doing this:

[HKEY_CLASSES_ROOT\Directory\shell\Command] @="TestRightClick:"

[HKEY_CLASSES_ROOT\Directory\shell\Command\Command] @="myExe.exe %1"

I need to have "context menu for all the files in folders of a particular directory". context menu should be available only when i right click files under a particular directory. (for example on files of folder D:\folder\sub_folder)?

can this be achieved through Python or registry edit? read somewhere that this can be achieved through IShellExtInit interface. is there any python package to support this interface?

Thanks

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\NetBeans]
"AppliesTo"="System.ItemPathDisplay:\"NetBeansProjects\""
@="Open with NetBeans"

[HKEY_CLASSES_ROOT\Folder\shell\NetBeans\command]
@="\"C:\Program Files\NetBeans 7.2.1\bin\netbeans64.exe\" --open \"%1\""

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.