PDA

View Full Version : Folder Compare - Confirmation Message


hel10z
27-Jun-2010, 10:29 PM
Hello All,

I have scheduled task which runs at 12:00AM every night.

Basically it compares our client data on our website with the data on our local server.

I have it to only download changed and new files.

The problem i have is that if a file exists, it asks me" This file exists, do you want to overwrite it" which i do since it has changed but i dont know how to do this and i have searched in help and in the forums.

The script i use is below:

#log the script
log verbose append:"C:\xampp\_data\client_data\%date%-XML.log"

#set the comparison criteria

criteria timestamp size

#load source and target

load create:right "ftp://username:password@ftp.www.website.com/_data" "C:\xampp\_data\client_data\%date%"

#filter to only include source files, ignore CVS subfolders
#filter "*.htm;*.html;*.php;*.jpg;*.gif;-CVS\"
#
#NO FILTERS APPLIED - SYNC ALL FILES
#

#Sync the files from Swebsite.com/_data to localserver.

sync create-empty mirror:lt->rt

So can this be done to add overwrite command so that i dont have to say Yes To All every day.

:)

Cheers

Helio

Dave_L
28-Jun-2010, 04:31 AM
The OPTION command should solve this:
http://www.scootersoftware.com/support.php?zz=kb_scriptingref#OPTION

hel10z
30-Jun-2010, 12:29 AM
Thanks Dave

I have added that to my script and will give it a test tonight.

Thanks

hel10z
30-Jun-2010, 07:38 PM
Hello,

That didn’t work for me unfortunately

I have added a few screen caps of the message and part of my script.

Message
http://savv-e.net/temp/images/01.png

Part of Script
http://savv-e.net/temp/images/02.png

Dave_L
30-Jun-2010, 07:45 PM
I think the OPTION command should precede the SYNC command.

Aaron
07-Jul-2010, 02:19 PM
The option command should be at the topmost part of your script file. That way, all following dialogs, when encountered, have the option set to Yes-To-All.

Aaron
07-Jul-2010, 02:19 PM
Thanks for the help, Dave. :)