Scripting example to change transfer mode from BINARY to ASCII
We have a customer pushing files from their Linux server to our Windows server. They are using WinSCP SFTP and since the default is BINARY mode, it is dropping the CR from the CR/LF in the file on way to our Windows server. Can you provide an example of the command to switch the mode from BINARY to ASCII? I found on your site the switch
-transfer
is available, but I am not sure where they should place it in their code and also what more there is to it. Is it -transfer
ASCII or what? Thanks so much. Pennie