Using Beyond Compare with XYPLORER

Features wanted...
Post Reply
adr
Posts: 1
Joined: 31 Jul 2023 01:39

Using Beyond Compare with XYPLORER

Post 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

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

Re: Using Beyond Compare with XYPLORER

Post 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?
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1374
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Using Beyond Compare with XYPLORER

Post 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
You do not have the required permissions to view the files attached to this post.
Windows 11 Home, Version 25H2 (OS Build 26200.8457)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1412b (x64), Everything Toolbar 2.3.0, Listary Pro 6.3.6.99

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: Using Beyond Compare with XYPLORER

Post 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";

eil
Posts: 1864
Joined: 13 Jan 2011 19:44

Re: Using Beyond Compare with XYPLORER

Post 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;
	};
Win 7 SP1 x64 100% 1366x768|1900x1080

Post Reply