Re: Hide winscp.com console window
You can use
https://winscp.net/eng/docs/executables
But in your case,
See https://superuser.com/q/62525/213663
Or you can avoid using the batch file, as it contains one command only anyway. Instead, run
winscp.exe instead of winscp.com, if you do not want WinSCP to open console window.
https://winscp.net/eng/docs/executables
But in your case,
winscp.com only inherits a console window on the parent batch file (cmd.exe). So it won't help. You have to hide a console window of the batch file in the first place.
See https://superuser.com/q/62525/213663
Or you can avoid using the batch file, as it contains one command only anyway. Instead, run
winscp.exe directly. Though then you won't be able to use output redirection.