View Full Version : Simple Script for noob.
netcrammer
05-May-2010, 01:56 PM
I want to run a script that would basically do a folder sync for me:
NO DELETIONS, missing files on either side get copied.
I presently use the Synchronize>Folder sync to do a manual "update both" from Drive A (left folder) to Drive B (right folder) (no filters).
Thanks!:D
Chris
05-May-2010, 02:24 PM
Here's an example script to duplicate the behavior of an interactive "update both":
load c:\folder1 c:\folder2
sync update:all
To run the script, save it as a text file and use the command:
bcompare.exe @c:\script.txt
This will copy files with newer timestamps and files that only exist on one side to the other side.
netcrammer
12-May-2010, 12:54 PM
this lauches a window with no results. I created some files on B which DID NOT copy to A.
Chris
12-May-2010, 02:31 PM
It might help to add a few things to the script, here's a revised version:
log verbose c:\logfile.txt
option confirm:yes-to-all
criteria timestamp
load c:\folder1 c:\folder2
sync update:all
This should copy files with newer timestamps between sides and orphan files between sides. The "option confirm:yes-to-all" will confirm any file operation prompts, and the log should show any files that are copied.
Also, BC's default settings should compare timestamps, but I added the "criteria timestamp" command in case you've changed the default settings.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.