Announcement

Collapse
No announcement yet.

How to export difference into another text file by command line?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to export difference into another text file by command line?

    Dears,

    I purchased BC3 few hours ago, now I have a problem on command line mode, here is my batch file to auto compare two text files:

    bcomp.exe A.txt B.txt /qc

    But I want to export the difference to C.txt if the error level code=13, so I need to know what commands to finish my request, please help me.

    PS: I don't need the UI so I use /qc command.

    Thanks,
    Jacky

  • #2
    Hello,

    /qc only supports the error level output. For generating a report, you will need to use BC Scripting, as documented in the Help file -> Using Beyond Compare -> Automating with Script chapter.

    The rough command line you are looking for is:
    bcompare.exe "@c:\bcscript.txt" "c:\A.txt" "c:\B.txt" "c:\report.txt"

    where bcscript.txt is:
    text-report layout:side-by-side options:display-mismatches output-to:"%3" "%1" "%2"
    Aaron P Scooter Software

    Comment

    Working...
    X