Compare content of 2 folders

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
VBScab
Posts: 2
Joined: 21 May 2015 17:08

Compare content of 2 folders

Post 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?

highend
Posts: 14950
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Compare content of 2 folders

Post by highend »

Is Menu - Panes - Sync Select... enough?
One of my scripts helped you out? Please donate via Paypal

rd7770
Posts: 57
Joined: 03 Oct 2011 04:36

Re: Compare content of 2 folders

Post 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.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Compare content of 2 folders

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

VBScab
Posts: 2
Joined: 21 May 2015 17:08

Re: Compare content of 2 folders

Post 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! :-)

stts
Posts: 18
Joined: 13 Apr 2006 06:33

Re: Compare content of 2 folders

Post 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

Post Reply