select two items in currPane OR one item in each pane!
Code: Select all
"BeyondCompare"
//prio: 2xSelxPane > 1xSelxPanes
$app = "<xypath>\..\BeyondCompare\BCompare.exe";
$cmd = '/fv="Hex Compare"';
$pa = get(SelectedItemsPathNames,'|',a);
$pi = get(SelectedItemsPathNames,'|',i);
if (gettoken("$pa",count,'|') == 2) {$files = '"'.replace($pa,'|','" "').'"';}
elseif (gettoken("$pa",count,'|') == 1)&&
(gettoken("$pi",count,'|') == 1) {$files = """$pa"" ""$pi""";}
else {$files = "";$cmd = "";status "BCompare::pick one item in each pane Or two in current pane to diff";wait 1;}
run """$app"" $files $cmd";ed: btw, what's the use of /e and /r? BCompare doesn't have these options.
[ed:beautify]
ed: I now added a normal BCompare launcher option to the script!
XYplorer Beta Club