Help passing left and right selected folders in simple button

For Beyond Compare, you probably want to use one of the scripts in this thread, which makes the button more context sensitive:

There are also some simple, non-script Beyond Compare buttons here:

And here is a general discussion about passing the selected left and right filenames to programs (without using scripting):