Just following up that everything is working as expected. I created separate task to remove the contents of the folder prior to the automated syncing and it is working great. Thanks for the help!
- gilbreen
v:\Test
before even starting WinSCP script.
option batch on
option confirm off
open ftp://remote_ftp_site
option transfer binary
get /remote/path/*>14D v:\Test\*
exit
v:
is one of the local drives and I created the Test
folder as the destination.
get /remote/path/*>14D
get
commands, one for each day (or one command with 14 masks):
cd /remote/path
get %TIMESTAMP#yyyy-mm-dd%*
get %TIMESTAMP-1D#yyyy-mm-dd%*
get %TIMESTAMP-2D#yyyy-mm-dd%*
...
get %TIMESTAMP-13D#yyyy-mm-dd%*
yyyy-mm-dd*
)