Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review



Thanks you.

Re: Problem synchronize local

Sorry, but your scenario is so specific, that you cannot expect that a simple command-line interface supports it.
MICHAEL HUGE (abildoc)

Re: Problem synchronize local


thanks you for your fast answer.

But I don't a developper. I don't know .NET code.
I use only command line.

have you an example script (secure ftp transfert and delete files after success) with command line ?

Best regards,


Re: Problem synchronize local

Well, first your script is not safe. You remove the files after synchronization. What guarantees you that some files are not created between the synchronize and the rm?


If you are sure, there's something wrong anyway, please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
MICHAEL HUGE (abildoc)

Problem synchronize local


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://***:***@****
synchronize local C:\app-capture4invoice\FTP\WORK_TEMP\OUT\outbox-france\ /OUT/outbox-france
rm /OUT/outbox-france/*.*

My result with problem :

echo off
batch on
reconnecttime 120
confirm off
Connecting to **** ...
Starting the session...
Session started.
Active session: [1] ****@****
Local 'C:\app-capture4invoice\FTP\WORK_TEMP\OUT\outbox-france-rd' <= Remote '/OUT/outbox-france-rd'
Nothing to synchronize.
Session '*****@*****' closed.
No session.

How to verify my FTP transfert is OK before delete files ?

Thanks you for your help.

Best regards,