Re: winscp.cmd with script and log file parameter - if script file is missing, fails to log failure
The log file logs a session. If you do not start any session, nothing is logged. Conversely, a single instance of WinSCP can produce multiple logs, if multiple sessions are opened. So it's by design.
Capture
See https://winscp.net/eng/docs/guide_debugging_scheduler#output
Capture
winscp.com
output, if you need to handle even cases like this.
See https://winscp.net/eng/docs/guide_debugging_scheduler#output