Announcement

Collapse
No announcement yet.

command-line: Comparing two folders with html output reports for each file compare

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • command-line: Comparing two folders with html output reports for each file compare

    Hi all,

    BC newb here so apologies for the easy/obvious question.

    I want to compare two folders, each with files that have the exact filenames names in each. Then output an html comparison report for each file.

    I can see this example script from the help, and I can probably create a batch file to loop through this and pass in a bunch of parameters (perhaps) but is there an easier way where the above can be achieved?

    text-report layout:side-by-side &
    options:ignore-unimportant,display-context &
    output-to:%3 output-options:html-color %1 %2

    Thanks for any help!
    m

  • #2
    To generate a single report listing lines in each selected pair of files:

    load "%1" "%2"
    expand all
    select all.files
    text-report layout:side-by-side options:ignore-unimportant &
    output-to:"%3" output-options:html-color

    To generate a folder report that lists filenames with links to text reports for each pair of files:

    criteria rules-based
    load "%1" "%2"
    expand all
    folder-report layout:side-by-side options:include-file-links &
    output-to:"%3" output-options:html-color
    Chris K Scooter Software

    Comment

    Working...
    X