Post a reply

Options
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)

Options

Topic review

jt32436342

Abort on Failed Upload Through Command Line

I am using WinSCP through the command line to upload some files to a server, but when I get errors the behavior seems to be to keep retrying until the upload is successful. I would like to change the behavior so that it aborts the upload when it fails, but after looking through the command line documentation, I do see any flags to specify this.

The current structure of my command line call looks like this:
"C:\Program Files (x86)\WinSCP\WinSCP.com" /ini=nul /command "open ftp://{username}:{password}@{host} -explicittls" "put ""{entry.path}""" exit

Is there some flag I can add to make the upload abort upon failure rather than retry?