Multi Commander Support Forum

Multi Commander => Feature Requests and Suggestions => Topic started by: duci on November 08, 2012, 10:47:08

Title: Compare 2 files by content
Post by: duci on November 08, 2012, 10:47:08
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.
Title: Re: Compare 2 files by content
Post by: Mathias (Author) on November 08, 2012, 18:20:03
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.
Title: Re: Compare 2 files by content
Post by: Timon on January 25, 2013, 19:18:34
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)".
Title: Re: Compare 2 files by content
Post by: Lukas on July 01, 2013, 15:00:10
You can use Multi-Script command.
For example like this:
Code: [Select]
@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}"'