Announcement

Collapse
No announcement yet.

Bcomp Batch file for error code doesnt work

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

  • 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
    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

    Comment

    Working...
    X