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.

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

HappyChappy

thank you, will give it a go
martin

Correct.
HappyChappy

Thanks,

So I should change code to:

"C:\WinSCP\WinSCP.exe" /console=*** /consoleinstance=_****_** "/command" "option batch abort" "open -timeout=60 ftps://A******:*******@ftp.***.*****.com:990/*****/" "put ""C:\ProgramData\******_**_20160505.txt""" "exit"
martin

Re: setting a limited number of retries

Did you try setting a longer timeout with open -timeout=60 ...?
HappyChappy

setting a limited number of retries

Hello,

Apologies, I am sure this is very simple question.

I am trying to transfer a file from my site to another site on a schedule. The commands I pass are:

Command-line: "C:\WinSCP\WinSCP.exe" /console=*** /consoleinstance=_****_** "/command" "option batch abort" "open ftps://A******:*******@ftp.***.*****.com:990/*****/" "put ""C:\ProgramData\******_**_20160505.txt""" "exit"

Usually it works, however there are times when it fails due to not establishing a connection within the 15 sec timeout period. Is there a way to get the connection attempt to retry, twice, or three times, before aborting?

Thanks,