Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2018
    Posts
    16

    Default 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

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,540

    Default

    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

Posting Permissions

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