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?


Windows Registry Editor Version 5.00

@="Open with NetBeans"

@="\"C:\Program Files\NetBeans 7.2.1\bin\netbeans64.exe\" --open \"%1\""