Hello everyone.
I invoke WinSCP 5.21.8 with a script multiple times throughout the day and sometimes it randomly fails without even creating log file. I've check Windows Event Log, but it gets only termination code 0x1, nothing more. All other cases that ends with success, or when I do test, end with errors, leaves something in WinSCP log. In those cases WinSCP is not returning a log at all. There is no concurrent WinSCP call in that same time. Unfortunately, currently I cannot upgrade WinSCP to current version, sorry, big company bureaucracy :) I've tried to set readonly flag on winscp.ini file, but that didn't help.
Small clue could be that on this server I'm pushing small files, few bytes. On the other server, where files are bigger, few megabytes those failures occur less often.
Script file looks like that:
open account@ftp.bigserver.com
cd "/FromCustomer/"
option batch on
option confirm off
put \\fantastic\path\to\my\file.DAT
exit
Does anyone have any idea what might have happened here?