Re: Automatic upload with batch file
First, the
See also https://winscp.net/eng/docs/troubleshooting#scripting
C:\Program Files (x86)\WinSCP\WinSCP.log
log file path is suspicious. Unless you run the batch file as Administrator (what you should not), WinSCP won't have permissions to write to that folder. So it will fail. Use a log path that you have write permissions too.
See also https://winscp.net/eng/docs/troubleshooting#scripting