Using Windows XP, I created a batch-file that takes two files as arguments, and now I want to add a file-type action "compare" to specific extensions, e.g. ".txt" that calls the batch-file with two selected files. That is I want to select two ".txt" files, and then select "compare" from the shell context menu and have it execute the batch-file with those two files.
I can easily add the "compare" action to the "Text Document" file-type, and select the batch-file with two arguments, e.g. "C:\batch.bat" "%1" "%2" (btw: this works fine from cmd and in other programs, e.g. Git difftool), but then if I select 2 files and try compare them, Windows opens two separate instances for each of the two selected files instead of comparing them.
I checked google and SO but could not find any reference of how to obtain the files as arguments to pass to the file-type action. Thanks!