Announcement

Collapse
No announcement yet.

Ignore Timestamp Comparison

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

  • Ignore Timestamp Comparison

    I am using Beyond Compare 4.1 with the following script:
    #Beyond Compare Script
    log verbose append:C:\templog%date%.log
    #compare the binary contents of the files
    criteria binary
    #what to ignore
    filter "*.*"
    load "C:\DelMe" "C:\DelMeCopy"
    folder-report layout:xml &
    options:display-mismatches &
    output-to:C:\BcReport-App.xml

    Timestamp difference was reported (see below) which is not what I expected as I use 'criteria binary' and don't care about the timestamp difference. How to ignore it? BTW, the same script worked before with Beyond Compare 2 as expected.

    </foldercomp>
    </foldercomp>
    </rt>
    <modified>1/28/2020 4:04:30 PM</modified>
    <size/>
    <name>New folder</name>
    <rt>
    </lt>
    <modified>1/28/2020 4:04:20 PM</modified>
    <size/>
    <name>New folder</name>
    <lt>
    <foldercomp>
    <ignoreunimportant/>
    <mode>Differences</mode>
    <rtpath>C:\DelmeCopy</rtpath>
    <ltpath>C:\Delme</ltpath>
    <foldercomp>
    <bcreport created="1/28/2020 4:25:35 PM">
    <?xml version="1.0" encoding="utf-8"?>
    </bcreport>

  • #2
    Hello,

    It looks like there is a folder in the script, but not a file? The report shows the timestamp of included items, but isn't including it in the comparison; similar to how if you loaded the interface and viewed the items, the timestamp column is visible even if it isn't a criteria to the comparison.

    To get a report similar to BC2, try loading the interface first, go to a new, blank Folder Compare, and switch the View menu to Only Compare Files.

    Then close BC4, and re-run the script. You may also need an "expand all" line immediately before the folder-report line, to expand and remove all empty folders. How does this work for you?
    Aaron P Scooter Software

    Comment


    • #3
      "Expand all" did the trick. Thanks!

      Is "Expand all" a new command in BC4? Will adding it to the script break the execution with BC2?

      Comment


      • #4
        expand all is also a bc2 command, but the View menu -> Only Compare Files was the default for BC2, but not for BC3.

        Was BC2 configured to auto-expand? A session or the defaults could be set to expand subfolders when loading session.
        Aaron P Scooter Software

        Comment


        • #5
          Yes, looks like 'Expand all' is the default in BC2.

          Comment


          • #6
            Hello,

            BC2 does not expand all by default out of the box, but the settings could have been updated as a default or loaded session.
            Aaron P Scooter Software

            Comment

            Working...
            X