I find the need to open files in an editor (PSPad) many times. When I right click on a file the context menu always displays "PSPad" for me and this is how I did it:
- Open "regedit".
- Navigate to "HKEY_CLASSES_ROOT\*\shell".
- Create a new key (Eg: PSPad). This will be the name that you see in the context menu.
- Create a new key under it and name it "command" (Now I have "HKEY_CLASSES_ROOT\*\shell\PSPad\command").
- Double click on the "Default" string under "command" (On the right hand page) and modify it's value as follows:
"<path_to_exe>" %1
For me it looks like this:
Note: "%1" indicates the first parameter to be passed to the exe file. In most cases it is the name of the file that you want to open.