Announcement

Collapse
No announcement yet.

Folder Compare - Confirmation Message

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Folder Compare - Confirmation Message

    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[email protected]/_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

  • #2
    The OPTION command should solve this:
    http://www.scootersoftware.com/suppo...tingref#OPTION

    Comment


    • #3
      Thanks Dave

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

      Thanks

      Comment


      • #4
        Hello,

        That didn’t work for me unfortunately

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

        Message


        Part of Script

        Comment


        • #5
          I think the OPTION command should precede the SYNC command.

          Comment


          • #6
            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 P Scooter Software

            Comment


            • #7
              Thanks for the help, Dave.
              Aaron P Scooter Software

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎