How to add new items to right-click event on Folders and Files in Windows?
I added custom right-click verb to all files by adding registry keys to HKEY_CLASSES_ROOT\*. End result looks like this
HKEY_CLASSES_ROOT*\Shell\TestRightClick\Command
-------Default = c:\RightClickTest.exe "%1"
Problem: when selecting multiple files c:\RightClickTest.exe will be called several times(number of selected files)
What I need: pass-in multiple files paths to one executable
As I stated in the previous question, you're going to have to be intelligent about this inside your application. One instance of the program will be launched per file selected if you're not using a shell extension. Your general strategy could be this:
%1
), check if any instance of the application are already running.