To add a Windows shell context menu, let's say for .txt
files - if the .txt
extension in HKEY_CLASSES_ROOT
(or in HKEY_CURRENT_USERSoftwareClasses
, doesn't really matter) has the default value (file type) txtfile
- you add the command to HKEY_CLASSES_ROOTxtfileshellyourcommand
(and the command itself in HKEY_CLASSES_ROOTxtfileshellyourcommandcommand
, of course) and there you go.
However, let's say the .txt
extension instead has the default value Notepad++_file
. Notepad++_file
might be the file type for many other extensions, so if you add the command to HKEY_CLASSES_ROOTNotepad++_file
, then this command will appear for every extension associated with Notepad++.
So, the question is: how can you add a menu entry for ONLY ONE specific EXTENSION, without changing its file type, if possible at all?
P.S.: I don't want to just duplicate the file type, because future changes to the original file type won't affect the duplicated one.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…