To add the context menu of the Windows shell, say, for files .txt— if the extension .txtin HKEY_CLASSES_ROOT(or in HKEY_CURRENT_USER\Software\Classesdoesn’t really matter) has a default value (file type) txtfile- you add the command to HKEY_CLASSES_ROOT\txtfile\shell\yourcommand(and the command itself to HKEY_CLASSES_ROOT\txtfile\shell\yourcommand\command, of course), and there you go.
However, suppose the extension .txthas a default value Notepad++_file. Notepad++_filecan be a file type for many other extensions, so if you add a command to HKEY_CLASSES_ROOT\Notepad++_file, this command will appear for each extension associated with Notepad ++.
So, the question is : how to add a menu item for ONLY ONE specific extension without changing its file type, if at all possible?
PS: I do not want to simply duplicate the file type, because future changes to the original file type will not affect the duplicated one.
source
share