I have the following problem on Windows 7. I am trying to create a context menu for right clicking files of a specific type, let us say
*.hyb, i.e. I want, when I right click on this kind of files (like
filename.hyb), an option in the menu like "Run with Myapplication", and when I click on it I want that the command "Myapplication.exe filename" to be run.
I have managed to create the context menu for this specific file, but the problem is the filename is passed as an argument to Myapplication.exe with its extension. Myapplication.exe cannot handle file-extensions, so I need to remove it. My registry key (stored under
HKEY_CURRENT_USER\Software\Classes\hyb_auto_file\shell\Myapplication\command) has the value
Can I tweak the
%1 parameter so that the filename is passed without its extension?
Thank you very much!