Comparing files using external tool

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
thomask
Junior Member
Junior Member
Posts: 4
Joined: 2005-06-23, 06:55 UTC

Comparing files using external tool

Post by *thomask »

Hi - I need help with the following:

I would like to use a 3rd part tool triggered from TC to compare two files.

What I need is to be able to get two selections from TC and then launch the tool using a command line similar to this:

uc.exe <file1> <file2>

I have experimented with the toolbar and know how to launch uc.exe, but I do not know how to get the selections and have them attached to the uc.exe command line.

In the perfect world I would also like to be able to define a short-cut for this compare tool.

Any help will be appreciated.

Thomas
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

For that you need Lst2Str from http://www.ghisler.com/dtools.htm


to select two files from one panel create a Button with

Command:"%Commander_Path%\Addon\Lst2Str\lst2str.exe"
Parameters:/X:"D:\Path\To\UC_exe\UC.exe" "/L:%L"
Startpath:<empty>
Of course you have to adjust the path to Lst2Str.exe and uc.exe
You cant use %Commander_path% in the parameter field.

To select the two files from both panels use

Command:"D:\Path\To\UC_exe\UC.exe"
Parameters:%P%N %T%M
Startpath:

If you need a hotkey create a Startmenu entry. Those entrys you can access via cm_usermenuXX whilw XX is the number of the entry.

then you can define a hotkey via configuration->Options->misc:Redefine Hotkeys.

sheepdog
________________
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6502
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Use the Autohotkey Script found in the wiki
This can be customized to any external program.
Uses Winmerge by default.

http://www.ghisler.ch/wiki/index.php/AutoHotkey:_Launch_external_diff
User avatar
Stance
Power Member
Power Member
Posts: 1079
Joined: 2005-03-29, 06:26 UTC

Post by *Stance »

[Suggestion] Why not a stronger "Compare by content ...
ghisler(Author) wrote:The next version of TC will have a much improved compare function, and will also allow to specify an external compare tool if it's still not good enough.
So maybe better to wait for Version 7 before installing 3rd party apps!

There is also an existing page in TCWiki about Winmerge, I guess :)

Kind regards
Stance
Post Reply