Re: Sftp script error - "invalid session number"
The
See https://winscp.net/eng/docs/scriptcommand_close
But I rather see a problem with your
close
command accepts a sequence number of the session (would be "1" in your case), not a name of opened site.
See https://winscp.net/eng/docs/scriptcommand_close
But I rather see a problem with your
put
command, as it seems no files are uploaded. Do you indeed have all the spaces in the paths there in your script? As it does not look plausible this can work.