Announcement

Collapse
No announcement yet.

Full expand to a text file

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

  • Full expand to a text file

    I need to generate two reports. 1st report would show every file in a folder line by line showing they match up and one where only the left is new\ or orphaned. I have attached screenshots.


    However I can't get a report to generate comparing every file. or a report showing just the differences.



    The 2nd report would show only the differences. I have tried to add the expand all and "expand-all" between the criteria and load statements and it does nto work.

    "C:\Program Files\Beyond Compare 4\bcomp.exe" "@\\\15.121.64.205\CompassFiles\!_Beyond_Compa re_r eports\!_Beyond_Compare_Script_Files\1Compliance_B eyond_Compare.txt"



    My command file contains the following

    criteria binary
    load "\\servername1\share\folder" "\\servername2\share\folder"
    file-report layout:side-by-side options:display-all output-to:"\\servername1\share\!_Beyond_Compare_reports\ F older1_Beyond_Compare_Report.txt"

    Click image for larger version

Name:	Left newer.JPG
Views:	125
Size:	69.0 KB
ID:	85888
    Attached Files
    Last edited by faf1967; 10-Jun-2021, 09:48 AM. Reason: Added screenshots

  • #2
    The file report command operates on selected files. Try the following updates to your script:

    Report all lines in all files:
    Code:
    load "\\servername1\share\folder" "\\servername2\share\folder"
    expand all
    select all.files
    file-report layout:side-by-side options:display-all output-to:"\\servername1\share\!_Beyond_Compare_reports\Folder1_Beyond_Compare_Report.txt"
    Report different lines in different files:
    Code:
    criteria rules-based
    load "\\servername1\share\folder" "\\servername2\share\folder"
    expand all
    select diff.files orphan.files
    file-report layout:side-by-side options:display-all output-to:"\\servername1\share\!_Beyond_Compare_reports\Folder1_Beyond_Compare_Report_diff.txt"
    Chris K Scooter Software

    Comment


    • #3
      Thank you...

      Comment


      • #4
        I noticed an error in my second example script. What I posted above will include all lines in files that are different. To only show different lines in files that are different, use the script below.

        Code:
        criteria rules-based
        load "\\servername1\share\folder" "\\servername2\share\folder"
        expand all
        select diff.files orphan.files
        file-report layout:side-by-side options:ignore-unimportant,display-mismatches output-to:"\\servername1\share\!_Beyond_Compare_reports\F older1_Beyond_Compare_Report_diff.txt"
        Chris K Scooter Software

        Comment

        Working...
        X