Page 1 of 1

Compare content of 2 folders

Posted: 21 May 2015 17:12
by VBScab
Hi. I am a long-term user of Powerdesk and Beyond Compare. I have been looking for a utility to replace both, one which provides the multi-pane view of the file system with the ability to compare folders (and possibly their content).

Is there a way to have XYPlorer do that?

Re: Compare content of 2 folders

Posted: 21 May 2015 17:56
by highend
Is Menu - Panes - Sync Select... enough?

Re: Compare content of 2 folders

Posted: 22 May 2015 02:31
by rd7770
Comprehensive folder and file comparison is a serious operation and a breed of software unto itself, and there are a variety of choices out there.

Expecting that much power in XYplorer would be an unrealistic demand on the developer.

I use Beyond Compare with XYplorer, and there are other commercial and free programs out there that could be used similarly.

Re: Compare content of 2 folders

Posted: 22 May 2015 07:01
by bdeshi
I have a catalog script for BeyondCompare. (you can of course also use it as a ctb, udc and whatnot.)

put path to Beyond Compare exe between the triple quotes in $app. the Path can be absolute, or relative to XYplorer.exe

Code: Select all

"BeyondCompare"
  //prio: drop > 2xSelxPane > 1xSelxPanes > PathxPanes

  $app = """<xypath>\..\BeyondCompare\BCompare.exe""";
  $cmd = '/fv="Hex Compare"'; $files = '""';
  $dr  = replace(<drop>, <crlf>, '|');
  $fa  = get('SelectedItemsPathNames', '|', 'a');
  $fi  = get('SelectedItemsPathNames', '|', 'i');

  if     (gettoken($dr, 'count', '|') == 2)  { $files = '"'.replace($dr,'|','" "').'"'; }
  elseif (gettoken($fa, 'count', '|') == 2)  { $files = '"'.replace($fa,'|','" "').'"'; }
  elseif (gettoken($fa, 'count', '|') == 1)&&
         (gettoken($fi, 'count', '|') == 1)  { $files = """$fa"" ""$fi"""; }
  else       { $da = get('path', 'a');
               $di = get('path', 'i');
               if (strpos($da, 'paper:') != 1)||
                  (strpos($di, 'paper:') != 1)  { $files = """$da"" ""$di""";$cmd = ""; }
             }

  run "$app $files $cmd";
If you drop two items onto it, elseif you have two items selected in current pane, elseif you have one item selected in each pane, they're compared; else the two pane locations are compared.

Re: Compare content of 2 folders

Posted: 22 May 2015 20:57
by VBScab
highend wrote:Is Menu - Panes - Sync Select... enough?
Hmmm...not really. BC puts the two panes side-by-side and colour-codes the differences.

Never mind. I'll soldier on with BC for folder comparisons.

Thanks for your suggestions, everybody! :-)

Re: Compare content of 2 folders

Posted: 26 May 2015 07:08
by stts
I use treecomp for all my folder comparisons. It is just awesome in its simplicity to deal with folder differences.

http://lploeger.home.xs4all.nl/TreeComp.htm