Problem with "select rt.diff.files" statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    Problem with "select rt.diff.files" statement

    Hello!

    I have written a simple BC script that compares master_folder (left) with changes_folder (right) and then copies changed files from changes_folder (right) to master_folder (left).

    load "z:\master_folder" "z:\changes_folder"
    expand all
    select rt.diff.files
    copy rt->lt

    The trouble is that I can't get this "rt.diff.files" working. Any suggestions ?

    "select rt.newer.files rt.orphan" works fine.

    Regards,
    Janne
  • Chris
    Team Scooter
    • Oct 2007
    • 5533

    #2
    Re: Problem with \"select rt.diff.files\" statement

    The diff selection will select files that exist on both sides and only have content differences (size, crc, etc). If you're comparing timestamps and the files you're trying to select have size and timestamp differences, diff by itself won't select them.

    If you're only interested in content differences try skipping the comparison of timestamps by placing a criteria size statement at the start of your script. This will prevent timestamps from being compared so diff will select files with any size differences.

    Note that diff also won't select files that exist on only one side.
    Chris K Scooter Software

    Comment

    Working...