Abort on Failed Upload Through Command Line

Advertisement

jt32436342
Guest

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum