Announcement

Collapse
No announcement yet.

Need help in writing output to same file after comparing two files

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

  • Need help in writing output to same file after comparing two files

    Hi,

    I am comparing files using below command and able to write the output as a difference to a file.

    file-report layout:side-by-side options:display-mismatches,line-numbers output-to:%3 %1 %2

    I need help in writing output of multiple files to same file.(%3) or say I want to append the output file after every comparison.

    please help me to do the same.

  • #2
    Hello,

    BC's scripting does not append, but you can add a wrapper .bat file to append into a total report:
    bcompare.exe "1" "2" "temprep.txt"
    cat "temprep.txt" >> "totalreport.txt"

    Appending for an HTML would not work. If you have two total folders, you can load two folders, select multiple files at once, and generate a total text-report of the entire selection in script. We have examples in the Help file -> Using Beyond Compare -> Scripting
    Aaron P Scooter Software

    Comment

    Working...
    X