CompareTool: specify command line arguments?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
DVV
Junior Member
Junior Member
Posts: 29
Joined: 2009-09-30, 13:19 UTC

CompareTool: specify command line arguments?

Post by *DVV »

Hello all,

Is it possible to specify "static" command-line arguments for the 'CompareTool' application in the "wincmd.ini" ?
I'm thinking about something like the following:

Code: Select all

CompareTool=%COMMANDER_PATH%\..\Progs\WinMerge\WinMergeU.exe
CompareToolArgs=/r
In case of WinMerge, the "/r" argument means "compare all files in all subfolders" - which is very useful when one calls it to compare two folders.
I know that I can create a toolbar button for this, but I'm rather interested in the menu command - the one that corresponds to the 'CompareTool' setting in the "wincmd.ini" .
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can simply add additional arguments to CompareTool parameter:

Code: Select all

CompareTool="%COMMANDER_PATH%\..\Progs\WinMerge\WinMergeU.exe" /r
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

DVV wrote:In case of WinMerge, the "/r" argument means "compare all files in all subfolders"
Sorry, but I don't see the benefit in this special case.
The "CompareTool" setting specifies at tool which compares exactly two single files by content.
For this reason TC will add two filenames to the program launcher.

... and yes I know that WinMerge can compare a filesystem too (just like TC "Synchronize Dirs"), but this is an other mode.
#5767 Personal license
DVV
Junior Member
Junior Member
Posts: 29
Joined: 2009-09-30, 13:19 UTC

Post by *DVV »

sqa_wizard wrote:Sorry, but I don't see the benefit in this special case.
The "CompareTool" setting specifies a tool which compares exactly two single files by content.
Correct, and I was mentioning folders because when WinMerge compares 2 archives, it can compare their content as folders by means of its 7-Zip plugin.
DVV
Junior Member
Junior Member
Posts: 29
Joined: 2009-09-30, 13:19 UTC

Post by *DVV »

MVV wrote:

Code: Select all

CompareTool="%COMMANDER_PATH%\..\Progs\WinMerge\WinMergeU.exe" /r
Thank you, it works!
It was not obvious that the path to the executable must be enclosed in double-quotes - initially I tried without the quotes and it did not work.
Post Reply