Script has stopped working
I've been using a generic 'put' script with WinSCP for years and not had any issues. The below script has stopped working, however, and I cannot find the reason why. The scheduled task outcome appears to state that a command is incorrect:
This script was previously working fine with this scheduled task, but appears to have stopped working some time in the last 4 weeks. I had a similar task that also stopped working around the same time, however this appeared to be an issue with permissions on a suppliers SFTP server which has now been resolved. I've also double checked that the session name is correct.
Has one of the commands been deprecated or something?
# 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
# Connect to the session in WinSCP (defines folder locations)
open HousingPartners
# Force binary mode transfer
option transfer binary
# Upload file with the mask to the remote directory
put "HHExtract*.xlsx"
# Exit WinSCP
exit
This script was previously working fine with this scheduled task, but appears to have stopped working some time in the last 4 weeks. I had a similar task that also stopped working around the same time, however this appeared to be an issue with permissions on a suppliers SFTP server which has now been resolved. I've also double checked that the session name is correct.
Has one of the commands been deprecated or something?