We have a batch file, runs every 4 hours via Task Scheduler, but occasionally when it gets to the part in the batch where it executes the WinSCP command, it just stops there. I have the batch file set to send output to a log file so I can troubleshoot, along with another log file for any connection issues (added recently when this issue started appearing). This is the last part of what shows up in the log file. Anything in the log file after this is from the next scheduled run.
Z:\>C:
C:\>CD C:\Databasics
C:\Databasics>C:"\Program Files (x86)\WinSCP\WinSCP.com" /log=c:\DatabasicsLog\ConnectionLog.txt /loglevel=0 /command "option batch abort" "option confirm off" "open sftp://<username>:<password>@<ftptsite>.net -rawsettings SendBuf 0" "cd data" "put -resumesupport=off *.zip" "exit"
Any ideas as to why this does not execute sometimes? I do have the task set to end after an hour if it is still running, and the task does keep running until it is killed.
All of the settings are what I have gotten from research here troubleshooting other issues and it's been working fine for several months. I have been thinking that this might have come because of a Windows Update.
WinSCP version: 5.19.4, I do plan to update soon, I have a Change order in for that.