How to pass multiple files to shell context menu command (Windows Explorer)
Do not forget to set the option MultiSelectModel=Player, otherwise the number of files will be limited.
Usage:
Usage:
Usage: singleinstance.exe "%1" {command} $files [arguments]
Optional arguments for singleinstance (not passed to command):
--si-timeout {time to wait in msecs}
Sample registry file:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\Shell\p4merge]
"MultiSelectModel"="Player"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\Shell\p4merge\Command]
@="\"d:\\singleinstance.exe\" %1 \"C:\\Program Files\\Perforce\\p4merge.exe\" $files --si-timeout 400"