Comparing folder and listing only different files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gillsurjeet
    New User
    • Apr 2005
    • 2

    Comparing folder and listing only different files

    I am kind of newbie to Beyond Compare, and first of all, I want to extend my thanks to Scooter Software to provide this kind of wonderful compare tool, I love it.

    I am seeking help to create BC script, if someone can help me, to achieve following tasks:
    1. I want to compare two folder and their contents under them, can I ignore certain file extensions e.g. *.bin
    2. I want to List all mismatched in size (ignore date time stamp) or orphan files present in either folders.
    3. spit out the difference in a log file.

    How I can do it?

  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Re: Comparing folder and listing only different fi

    Code:
    criteria timestamp
    filter "-*.bin"
    load folder1 folder2
    expand all
    folder-report layout:summary options:display-mismatches output-to:report.txt
    For multiple filters, separate them with semicolons.

    Example: filter "-*.bin;-*.exe"

    To run the script, use the command:
    bc2.exe @scriptfile.txt
    Chris K Scooter Software

    Comment

    • gillsurjeet
      New User
      • Apr 2005
      • 2

      #3
      Re: Comparing folder and listing only different fi

      Many thanks Chris,
      You script gave me ahead start. I modify that script and ended up the script below, which meets my requirements.

      #
      # Command line: C>bc2.exe @cmp.txt folder1 folder2
      #
      #criteria timestamp # uncomment if you need comparison based on timestamp
      criteria size # comparison based on file size
      filter "-*.bin;-*.dll" # exclude *.bin and *.dll files from compare
      load %1 %2 # load folders to compare
      expand all
      select all.newer all.diff all.orphans
      #folder-report layout:summary options:display-mismatches output-to:report.txt
      folder-report layout:side-by-side options:display-mismatches output-to:report.html output-options:html-color

      This creates nice report. Just curious is there a way to get count of mismatched, orphan or new files.
      I appreciate your help.
      Many thanks,
      S Gill

      Comment

      • Chris
        Team Scooter
        • Oct 2007
        • 5538

        #4
        Re: Comparing folder and listing only different fi

        It isn't possible to generate a count of mismatched, orphan, or new files in a report in the current version of BC. I'll add it to our feature wish list.
        Chris K Scooter Software

        Comment

        • Guest's Avatar

          #5
          Re: Comparing folder and listing only different fi

          Let me add my vote for the summary counts of how many files are left-side only, right-side only, new on left, newer on right, etc.
          Unless I have totally lost it, wasn't this feature in the product before version 2?

          Thanks

          Comment

          • Chris
            Team Scooter
            • Oct 2007
            • 5538

            #6
            Re: Comparing folder and listing only different fi

            In version 1.9, it was possible to display the information in a dialog using File|Comparison Info, but it wasn't possible to write the information out to a report file.
            Chris K Scooter Software

            Comment

            Working...