News:

MultiCommander v16.6 is released!

Main Menu

Compare 2 files by content

Started by duci, November 08, 2012, 10:47:08

Previous topic - Next topic

duci

Hi, could you tell me if you plan to develop this feature in MC? Because I can't find it in MC and now I have to use TC.

Mathias (Author)

It depend on what kind of compare you thinking about. Binary/Check Sum compare? Yes , A content compare that shows what lines the files has that differs ? No. But there are lot of free tools for that and better integration with those tool will be added.

Timon

May be it's not a bad idea to make a new type of programs in Configuration - File Type Setup... named "Compare files" (all settings must be identical for other type of programs - name, path, parameters, extensions). And there users may add external programs to use for file comparing (like other file commanders do). There are many programs of such a kind. And in main menu we only need to make new item named "Сompare files (external)".

Lukas

You can use Multi-Script command.
For example like this:

@var $cmd = "D:\\Programs\\WinMerge\\WinMergeU.exe";

@var $selectedPaths = GetSelectedPaths();
@var $path1;
@var $path2;
if (arrayCount($selectedPaths) == 2)
{
  $path1 = $selectedPaths[0];
  $path2 = $selectedPaths[1];
}
else
{
  /*$path1 = GetSourceFocusPath();*/
  /*$path2 = GetTargetFocusPath();*/
  $path1 = GetTagValue("${leftfocuspath}");
  $path2 = GetTagValue("${rightfocuspath}");
}

MC.Run CMD="{$cmd}" ARG='"{$path1}" "{$path2}"'