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,
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,