Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2012
    Posts
    7

    Smile 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. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,623

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •