Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2015
    Posts
    2

    Default 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.

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

    Default

    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

  3. #3
    Join Date
    Mar 2015
    Posts
    2

    Default

    Hello,

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

Tags for this Thread

Posting Permissions

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