Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since I don't really like Total Commander's internal diff 'Compare Contents' used in Compare by content and Synchronize Dirs -> Compare left & right I want to use something else like Winmerge or KDiff3.

Is this possible to launch an external program with the paths to the marked files in the left & right pane? That would solve Compare by content. Any other way to solve it? Can I control Synchronize Dirs so it does the same when I compare file content there?

Any other suggestions to easily make diffs in Total Commander with external diff program?

share|improve this question
up vote 15 down vote accepted

There are many ways to do this (here I'm using BeyondCompare as an example, it's the best I've found in this category, but the solution also works well with WinMerge):

A) Edit wincmd.ini under %USERPROFILE%\AppData\Roaming\GHISLER\ by default, and add something like this:

CompareTool=C:\Program Files\Shareware\FileCmp\BeyondCmp\BCompare.exe

Now all comparisons are made using this app instead of the internal tool.

B) Using TotalCmd's StartMenu (command "Change start menu..."), add these commands:


BC (Compare left-vs-right directories)

Command: %YourPath%\BeyondCmp\BCompare.exe

Parameters: %X%p %X%t


BC (Compare current file under cursor vs same file in the other panel)

Command: %YourPath%\BeyondCmp\BCompare.exe

Parameters: "%X%p%x%n" "%X%t%x%n"


BC (Compare current file in left vs current file in right)

Command: %YourPath%\BeyondCmp\BCompare.exe

Parameters: "%X%p%n" "%X%t%m"

share|improve this answer
What is the effect of %X and %x? – Joel Feb 16 '11 at 8:25
%X Interprets the following parameters after this parameter as left/right instead of source/target: %P, %p (left path), %T, %t (right path), %N, %n (left name), %M, %m (right name), %S, %s (left selected), %R, %r (right selected) – TheNewbie Feb 16 '11 at 9:56
%x Interprets the following parameters after this parameter again as source/target Example: %X%P %x%P sends left and source path to the called program – TheNewbie Feb 16 '11 at 9:57
To the option A, it worked for me (v8.51a) only if I added the CompareTool somewhere near the beginning of the wincmd.ini file. I don't know the exact setting which must be preceded by this, so I'd say the simplest is to put it to the beginning of the file. – TLama Jun 30 '15 at 8:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.