Passing files to external program fails when in different listers

I have a simple button that opens Beyond Compare and passes the files I have selected to it:

C:\PROGRA~2\BEYOND~1\BCompare.exe {allfilepath}

This works fine if I select the files in the same lister. When I select the two files from different listers (like in dual view) it fails.

Is there any way to make it work for both scenarios?

Thanks,

My Opus info:
Directory Opus Pro 11.15 Build 5666 x64 (Windows 10)

You can use {allfilepathdest} to get all the file paths from the destination file display.

The codes are all documented below External Control Codes.

But an even better way to run Beyond Compare from Opus is to use this script which will make an intelligent choice about which files to pass it based on what is selected and where. (There are some variants of the script in the thread. "LD" version is the one I modified and use, but the best one for you will depend on how you want things to work.)