Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2016
    Posts
    2

    Unhappy Bcomp Batch file for error code doesnt work

    I have a batch file
    start "BeyondCompare" "C:\Program Files (x86)\Beyond Compare 3\Bcomp.com" /qc C:\Users\xzr\Desktop\1.xml C:\Users\xzr\Desktop\2.xml
    echo %ErrorLevel%

    This always return echo 9009.

    if I try
    start "BeyondCompare" "C:\Program Files (x86)\Beyond Compare 3\Bcomp.com" /bianryC:\Users\xzr\Desktop\1.xml C:\Users\xzr\Desktop\2.xml
    echo %ErrorLevel%

    This opens an instance of Bcomapre with comparison and echo's 9009.

    can anyone help?

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,730

    Default

    Don't use "start" in your batch file. Also, /binary isn't a valid command line switch.

    If you use /qc, it will run a rules-based comparison. To specify a binary comparison, use /qc=binary

    Fixed batch files:

    "c:\program files (x86)\beyond compare 3\bcomp.com" /qc c:\users\xzr\desktop\1.xml c:\users\xzr\desktop\2.xml
    echo %errorlevel%

    "C:\Program Files (x86)\Beyond Compare 3\Bcomp.com" /qc=binary C:\Users\xzr\Desktop\1.xml C:\Users\xzr\Desktop\2.xml
    echo %ErrorLevel%
    Chris K Scooter Software

Tags for this Thread

Posting Permissions

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