Re: CMD window does not close after running a batch file
Please see:
Why are some WinSCP scripting commands specified in a batch file not executed/failing?
Particularly the "New-line Escaping" section.
Remove the trailing spaces/tabs from:
Why are some WinSCP scripting commands specified in a batch file not executed/failing?
Particularly the "New-line Escaping" section.
Remove the trailing spaces/tabs from:
"put %LOCAL_FILE% %REMOTE_DIR%" ^