How to get exits code if there is no differences in Folder compare script.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dinesh1393
    Enthusiast
    • Jan 2018
    • 23

    How to get exits code if there is no differences in Folder compare script.

    Hello Aaron,

    When am executing the below script, getting the exit code as 0 for Success.
    But I want to get the exit code as either 01 for Binary same or 11 for Binary difference.
    Is it possible to get the exit code as mentioned above without affecting below functionality?

    log %4
    Criteria Binary
    load "%1" "%2"
    expand all
    select all.files
    folder-report layout:side-by-side options:display-mismatches output-to:"%3" output-options:html-color

    Thanks in Advance,
    Dinesh
  • Aaron
    Team Scooter
    • Oct 2007
    • 15997

    #2
    Hello,

    The Folder level reports do not support error codes for the comparison. The documentation in the Help file references every possible error code, but different methods of calling BC only support a subset of the values as possible return codes.

    To determine a folder compare, you would need to parse the folder report itself for a difference (or generate an .xml report or summary report for parsing) and determine how you want to handle scenarios such as Orphans.
    Aaron P Scooter Software

    Comment

    Working...