Re: batch file script
OK, you have another problem in your batch file. I believe it's quite obvious. You didn't replace the placeholder
If this still does not help, please post your new complete script/batch file. A log file can be useful too.
Also make sure you have read complete article I've linked above. It deals with common problems people have when using WinSCP from a batch file:
https://winscp.net/eng/docs/faq_batch_file
C:\writable\path\to\log\
with an actual path. So WinSCP tries to log to a folder that does not exist. Use a real path.
If this still does not help, please post your new complete script/batch file. A log file can be useful too.
Also make sure you have read complete article I've linked above. It deals with common problems people have when using WinSCP from a batch file:
https://winscp.net/eng/docs/faq_batch_file