cmdbeyondcompare4

pass file format to beyond compare via command line


I've managed to activated beyond compare using command line:

"C:\Program Files\Beyond Compare 4\BComp.exe"  /qc /iu /K  "file1.c" "file2.c" & echo %errorlevel & exit

this allows me to get the result of comparison in cmd ERRORLEVEL variable.

I wan't to be able to set the file format used for this comparison. Manually, I can set it via the GUI through "format" button on the ribbon.

anyone know how this can be done? I've looked in the beyond compare scripting reference but to no avail.

thank you! Jack


Solution

  • Beyond Compare doesn't support forcing a file format with a command-line switch.

    If the file extension is .c, Beyond Compare will use the built-in C/C++ file format. To use a different file format, open Tools > File Formats. The highest file format in the list with a matching file mask is used. To force a file format to be used regardless of mask, move it to the top of the list and set the file mask to *.*.

    See the Command Line Reference topic in Beyond Compare's help file for supported command line parameters.