compare folders A & B put diffs in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • srElliott
    New User
    • Mar 2016
    • 1

    compare folders A & B put diffs in C

    Can someone point me to how to
    compare folder A with folder B
    then put different files in folder C
    ?
    Working on a back-up system.

    Thanks!
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    For your scenario, you only want differences placed within C? And the default criteria of timestamp/size is sufficient, correct? And do you need different files from the left *and* the right, and if they are an aligned difference, do you want the newer file or older file? The below script makes several assumptions:

    log verbose "c:\bclogs\bclog%date%.txt"
    load "c:\folderA" "c:\folderB"
    expand all
    select left.orphan.files left.newer.files right.orphan.files right.newer.files
    copyto all path:relative "c:\folderC"

    Please note that Script does not offer a preview before actions are taken, and there is no Undo command supported by BC4. Please test with test folders first while learning how our script syntax works to prevent accidentally altering any important data that a small syntax error could cause.
    Aaron P Scooter Software

    Comment

    Working...