Re: Unable to change the directory through script using lcd command
See https://winscp.net/eng/docs/faq_batch_file#newline_escaping
Your duplicate (and answered) question on Stack Overflow:
Some WinSCP commands in a batch file are not working
Though here you have posted a batch file with syntax that will indeed produce the error you are describing. On Stack Overflow you did not preserve the exact indentation, so the error did not make sense.
Your duplicate (and answered) question on Stack Overflow:
Some WinSCP commands in a batch file are not working
Though here you have posted a batch file with syntax that will indeed produce the error you are describing. On Stack Overflow you did not preserve the exact indentation, so the error did not make sense.