Re: Automating file transfer in Windows format
WinSCP does not convert file format by default. Unless you have changed transfer mode in global configuration (in GUI).
Ideally you should isolate the script from GUI configuration using
https://winscp.net/eng/docs/scripting#configuration
Or force the binary mode using
https://winscp.net/eng/docs/scriptcommand_put#transfer
Ideally you should isolate the script from GUI configuration using
/ini=nul
command-line switch.
https://winscp.net/eng/docs/scripting#configuration
Or force the binary mode using
-transfer=binary
switch of the put
command:
https://winscp.net/eng/docs/scriptcommand_put#transfer