Here's my script:
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Upload the file to current working directory
# Exit WinSCP
Now, when I connect to the server, it's always slow, so it asks me: "Wait for another 15 seconds?"
Once I hit "R" to retry, it connects successfully. How can I incorporate this into my script, so I don't always have to be the one pressing "R"?
Thanks for your help!