Reports Generated Only When Diffs Present

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RandyD
    Visitor
    • Jul 2016
    • 6

    Reports Generated Only When Diffs Present

    Is there a way to perform compares from a script that will only generate reports if differences are detected in a text compare? Or perhaps a way to provide the number of differences detected by the compare.? Trying to limit the potential number of reports that users will need to open. Not a good use of their time to be opening reports that will mostly not have differences but do need to be performed daily.

    Randy
  • Aaron
    Team Scooter
    • Oct 2007
    • 15941

    #2
    Hello,

    If the report command is issued, then the report is generated; we don't currently support a conditional value to only generate if diff.

    However, it sounds like your script is generating many separate text-report files? Would these be on specific file pairs or on an overall folder pair? There are two strategies that might help:

    A) If you are passing in file pairs, you can call bcompare.exe /qc file1 file2 to determine if the files are equal. Use this return code in a larger .bat file, which then only calls bcscript.txt if the return code indicates the file pair is different.

    B) The folder-report can generate links, which link to individual file reports. This way you would have only a single Folder-report to verify first, and any included links would be different file level reports.

    Let us know if you have any questions or need help with either specific strategy.
    Aaron P Scooter Software

    Comment

    • RandyD
      Visitor
      • Jul 2016
      • 6

      #3
      Perfect! Thanks Aaron.

      Using the Quick Compare and return code is a great solution to the problem I was having. Thanks.

      Randy

      Comment

      Working...