# Command line scripting: Resume after connection loss skips files that are partly uploaded

RonWilliams
Guest

## Command line scripting: Resume after connection loss skips files that are partly uploaded

I struggle with bad internet connections and thus drops a few times during upload, but the WinSCP resumes after the connection loss but skip over the files that are partly uploaded.

option batch on
option reconnecttime 30
option confirm off
open ftp://*******:***********@154.8.160.197/
synchronize remote C:\WINDEXVIDEO\ /public_html/Repository/Video2020 -resumesupport=on -speed=100
exit

martin
To generate the session log file, use /log=C:\path\to\winscp.log 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.