Page 1 of 1

Using Beyond Compare with XYPLORER

Posted: 31 Jul 2023 02:01
by adr
Hi Folks
I am busy evaluating features of different file managers and was a long time user of xyplorer until it went commercial. I am thinking of buying it as windows file manager is just hopeless.

I would like to right click on a folder in XYPLORER and get the option to open up a folder in Beyond compare like I can in windows explorer.
Cheers

Re: Using Beyond Compare with XYPLORER

Posted: 31 Jul 2023 07:49
by highend
I have "Select left folder" and "Compare to <last selected folder>" in both the x32 and x64 menus in XY after a default BC installation?

Re: Using Beyond Compare with XYPLORER

Posted: 31 Jul 2023 10:28
by Horst
I use this modified script from the forum.
Assign it to a button and you have this dialog
Screenshot - 31.07.2023 , 10_27_38.png
BCompare.zip

Re: Using Beyond Compare with XYPLORER

Posted: 31 Jul 2023 12:08
by FluxTorpedoe
Hi’

Alternately, you can use a fast "auto-compare".
Associate the following script to a button, or UDC / keyboard shortcut, or custom menu, catalog…

• Usage:
   — Select 1st item
   — Select 2nd item (can be in same pane or other pane)
   — Run script (ie press button, shortcut…), that’s it!
      (BeyondCompare is launched with these two items)

• Note:
   — Items can be file or folder, or even pane (ie when clicking in both panes with no item selected)
   — If 3 or 4 items are selected at once before running script, they will be used for a 3 or 4 comparison.
   — It’s a very basic script (no messages, safeguards…)

Code: Select all

	set $center; set $output; set $arg;
	if ((get("CountSelected") == 3) || (get("CountSelected") == 4)) {
		$left = gettoken(<selitems |>, 1, "|");
		$right = gettoken(<selitems |>, 2, "|");
		$center = '"'.gettoken(<selitems |>, 3, "|").'"';
		$output = '"'.gettoken(<selitems |>, 4, "|").'"';
	} elseif <curitem> {
		$left=<curitem>; $right=<curitemprev>;
	} else {
		$left=get("path", a); $right=get("path", i);
	}
	run """<PATH_TO_PROGRAM>\BeyondCompare.exe"" $arg ""$right"" ""$left"" $center $output";

Re: Using Beyond Compare with XYPLORER

Posted: 01 Aug 2023 10:31
by eil
Wanna share BC script i use too. My main tasks are comparing text files and folders, so it's simple, but easy to modify to more variant depending on selected items.
Best use it as button or catalog item: select first item, push the button/catalog, select second item, push again and compare will open.

Code: Select all

"Beyond Compare"
  perm $bcitem;

  if ($bcitem == "") {
  	$bcitem = """<curitem>""";  	
	status "BC:: $bcitem", "", "progress";
	}
  else {
	$bcitem2 = """<curitem>""";
        if (get("curitem", "ext") != "") {$cmd = '/fv="Text Compare"';} else {$cmd = '/fv="Folder Compare"';};
        $app = """<xydrive>\Progs\BeyondCompare4.3.7\BCompare.exe""";
        run "$app $bcitem $bcitem2 $cmd";
        unset $bcitem;
	};