Author Topic: Compare 2 files by content  (Read 25912 times)

duci

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Compare 2 files by content
« 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.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4411
    • View Profile
    • Multi Commander
Re: Compare 2 files by content
« Reply #1 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.

Timon

  • Junior Member
  • **
  • Posts: 41
    • View Profile
Re: Compare 2 files by content
« Reply #2 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)".

Lukas

  • Junior Member
  • **
  • Posts: 14
    • View Profile
Re: Compare 2 files by content
« Reply #3 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}"'