PDA

View Full Version : Silent (error-free) Script


Psyco_Kitty
02-Apr-2011, 01:54 AM
I currently have two large hard drives that i've set to sync every night, everything synchronizes fine but, every single time I see my computer in the morning it displays an error like "thumbs.db is not accessible... continue? (yes) or (no)" or "This file is a system file.... skip? (yes) or (no)".

I thought option confirm:yes-to-all would say YES to all those errors.

What can I add to my code to make it auto-confirm all problems the transfer encounters? I just want it to say yes to all errors and be a silent transter

Here is my script,

# January 04 2011

# Load the source and destination folder
load "D:\" "E:\"

# One-way Mirror from source to destination
sync create-empty mirror:lt->rt

#Dont Stop On Error
option stop-on-error
option confirm:yes-to-all

Thanks,
Brandon

Aaron
04-Apr-2011, 09:19 AM
Hello Brandon,

Script commands are sequential, so you will want to place the confirm:yes-to-all option before the other script lines.
The stop-on-error provides the opposite result. If you want to suppress errors and say Yes, then you will need to remove this command.

# January 04 2011
#Dont Stop On Error
option confirm:yes-to-all
# Load the source and destination folder
load "D:\" "E:\"
# One-way Mirror from source to destination
sync create-empty mirror:lt->rt


Please be careful and test this script with already backed up or test data. A mirror command is capable of overwriting newer files or deleting files on the destination side. By suppressing the confirmations, it can perform all of these actions without user interaction or warning.