Hiding menu item from file right click drop down through REGISTRY

#1
I have introduced a new drop down option "Encrypt" at right click to all file types - therefore I had to add it in the registry as :
HKEY_CLASSES_ROOT\*\shell\Encrypt
Now this drop down would be visible to all type of files at their right click.
But I also have files of type .crypt
HKEY_CLASSES_ROOT\.crypt
HKEY_CLASSES_ROOT\encryptedfile (encryptedfile is defined of type .crypt)
Now I DO NOT want this drop down Encrypt to be visible when I right click files of type .crypt (or encryptedfile)
For the rest of the files the menu Encrypt should be visible (enabled).
How can that be achieved?
I wish this functionality to be achieved by command line Registry modification, not by some third party tool or through C++, C# code
Thank you very much
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.