This is my current script, and it is working...
I would prefer to use timestamp and size criteria instead as these are much faster, but then I run into the whole timestamp/ftp issue that the touch command is meant to address. Yesterday I spent hours of trial and error trying to figure out the proper sequence/syntax to use the touch command. I saw something like this posted by a scooter team member in another post...
But that had no effect. Also why did that example select all instead of say "select rt.diff.files"? Please help me understand the proper usage of the touch command in scripting.
Thanks in advance,
PC
# Turn logging on
log normal append:C:\build\Logs\FTP\%date%.txt
# Set comparison criteria
criteria CRC
# Exclude certain file types
filter "-.\training\"
# Runs in background so needs permission for all dialog boxes
option confirm:yes-to-all
# Point to local and remote folder
load %1 %2
# Perform synchronization
sync create-empty mirror:lt->rt
log normal append:C:\build\Logs\FTP\%date%.txt
# Set comparison criteria
criteria CRC
# Exclude certain file types
filter "-.\training\"
# Runs in background so needs permission for all dialog boxes
option confirm:yes-to-all
# Point to local and remote folder
load %1 %2
# Perform synchronization
sync create-empty mirror:lt->rt
# Turn logging on
log normal append:C:\build\Logs\FTP\%date%.txt
# Set comparison criteria
criteria timestamp size
# Exclude certain file types
filter "-.\training\"
# Runs in background so needs permission for all dialog boxes
option confirm:yes-to-all
# Point to local and remote folder
load %1 %2
# Perform synchronization
sync create-empty mirror:lt->rt
# Update Timestamps
expand all
select all
touch lt->rt
log normal append:C:\build\Logs\FTP\%date%.txt
# Set comparison criteria
criteria timestamp size
# Exclude certain file types
filter "-.\training\"
# Runs in background so needs permission for all dialog boxes
option confirm:yes-to-all
# Point to local and remote folder
load %1 %2
# Perform synchronization
sync create-empty mirror:lt->rt
# Update Timestamps
expand all
select all
touch lt->rt
Thanks in advance,
PC
Comment