Contents
The general steps to achieve this are as follows: Identify the ProgID for your extension – go to HKCR\\.yourextension and take note of the default value (in your case, dllfile)
You can add menu items at run time by specifying the DynamicItemStart command flag on a placeholder button definition in the Visual Studio command-table ( .vsct) file, then defining (in code) the number of menu items to display and handling the command (s).
How to add a program to ” open with ” Menu in Windows 10?
* Please enter only numbers. When you are in that ‘Open With’ menu, at the bottom, is there an ‘Always use this app to open xxx’ option that you can tick? If so, tick that, it should set that file association and also add that app to the default list for opening that type of file . .
How can I add a notepad option to the context menu?
We’ve previously covered adding an “Open with Notepad” option to any file’s right-click menu in Windows Explorer, but you can do much more than that. First, launch regedit.exe from the Start menu. Expand the HKEY_CLASSES_ROOT key. As an example, let’s add an option to the context menu for .gif files.
How to register Notepad.exe as context menu item?
This is an example of how to register notepad.exe as a context menu item for dll files. This has been flagged as a virus by a bunch of vendors for some reason. I am trying to report it as a false positive to all of them, but it might not be a good option at the moment for that reason.
To get started, launch the Windows Registry Editor by hitting Windows key + R and entering regedit. Navigate to Computer\\HKEY_CLASSES_ROOT\\*\\shell and Computer\\HKEY_CLASSES_ROOT\\*\\shellex to find many application context menu entries and delete the ones you no longer want.
How to get path of file in context?
Modify the (Default) value to be the command you want to execute. %1 will give you the path of the file in context (remember to wrap it in ” due to potential white-space in the path) You seem to have done all the above, so you may be doing something wrong, as this is my result after a quick sanity test: