Context Menu - Multi Selected Files - One Instance
I created an item in the context menu of Window Explorer. I hooked the exe to:
HKEY_CLASSES_ROOT\*\SHELL
HKEY_CLASSES_ROOT\Directory\shell
HKEY_CLASSES_ROOT\Folder\shell
It works fine on single files!
Only problem is when I select multiple files, it runs multiple instance of the exe hooked to that context menu.
How can I make it so that it take in all selected files as parameters but only fires off the instance only once? Similar to a software called "Beyond Compare".
Does it have to do something with the registry - Reg_Multi_SZ with %1?
Re: Context Menu - Multi Selected Files - One Instance
Re: Context Menu - Multi Selected Files - One Instance
What if the number of files being selected can vary - nth?
Re: Context Menu - Multi Selected Files - One Instance
Quote:
Originally Posted by westconn1
try %1 %2 %3 etc
According to this link that RobDogg provided:
http://msdn2.microsoft.com/en-us/lib...20(VS.85).aspx
%2 %3 %4 are backward compatibility for Window 3.1 for printers and other stuffs.