Script to collect all differences from all files in two directories

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raduw
    New User
    • Mar 2015
    • 2

    Script to collect all differences from all files in two directories

    I am trying, without much success, to create a script that would compare two directories and accumulate in a result file all the differences from all the different files.

    I have managed to compare two directories ( which shows the different files) and to compare two files which shows the differences between two files, but I can't figure out how (if it is possible) to create one result file with all the differences from all the files.
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    You can generate a text-report on a selection. In the graphical interface, this would be done by loading the folders in a folder compare, then Expand All, Select All Files, then use the Actions menu -> File Compare Report. You can then pick the layout and generate.

    To perform a similar set of steps in scripting would be:
    criteria rules-based
    load "c:\folder1" "c:\folder2"
    expand all
    select diff.files
    text-report layout:side-by-side options:display-mismatches output-to:"c:\bcreport.html" output-options:html-color
    Aaron P Scooter Software

    Comment

    • raduw
      New User
      • Mar 2015
      • 2

      #3
      Hello,

      Perfect, works exactly the way I wanted, thank you very much Aaron.

      Comment

      Working...