Hi,
I want to protect my FTP file transfer.
Randomly, I sometimes have a synchronization that does not happen.
I have many files in my remote folder. the command "synchonize local" returns "nothing to synchronize."
my files are not tranfered and as I delete all at the end then I lose my files.
this is my winscp script :
option echo off
option batch on
option confirm off
open ftp://***:***@****.abildoc.com
synchronize local C:\app-capture4invoice\FTP\WORK_TEMP\OUT\outbox-france\ /OUT/outbox-france
rm /OUT/outbox-france/*.*
close
exit
My result with problem :
echo off
batch on
reconnecttime 120
confirm off
Connecting to ****.abildoc.com ...
Connected
Starting the session...
Session started.
Active session: [1] ****@****.abildoc.com
Comparing...
Local 'C:\app-capture4invoice\FTP\WORK_TEMP\OUT\outbox-france-rd' <= Remote '/OUT/outbox-france-rd'
Nothing to synchronize.
/OUT/outbox-france-rd/invoice-70636##$##_2016_10_24_14_23_584_45996622645.pdf
/OUT/outbox-france-rd/invoice-70636##$##_2016_10_24_14_23_584_45996622645.xml
/OUT/outbox-france-rd/invoice-70636##$##_2016_10_24_14_23_584_45996622646.pdf
/OUT/outbox-france-rd/invoice-70636##$##_2016_10_24_14_23_584_45996622646.xml
/OUT/outbox-france-rd/invoice-70636##$##_2016_10_24_14_23_584_45996622647.pdf
/OUT/outbox-france-rd/invoice-70636##$##_2016_10_24_14_23_584_45996622647.xml
Session '*****@*****.abildoc.com' closed.
No session.
How to verify my FTP transfert is OK before delete files ?
Thanks you for your help.
Best regards,
MICHAEL