问题
When Winrar installed, and user right click on a file, a new mune item exists: "Add to Archive..."
How can do like this for my application?
回答1:
This can be done by adding a shortcut (context) menu handler.
- A static handler by setting it up in registry
- Or, a fully featured dynamic handler, which is a COM object implementing necessary interfaces to advertise verbs and handle their invocations
See also:
- Choosing a Static or Dynamic Shortcut Menu Method
- The Complete Idiot's Guide to Writing Shell Extensions - Part I on CodeProject
回答2:
You register under *.
来源:https://stackoverflow.com/questions/7696736/how-to-add-a-menu-item-in-right-click-menu-to-explorer-for-all-files