Re: Script: Exit code: 1
The command-line should be:
See https://winscp.net/eng/docs/commandline#syntax
WinSCP GUI can also generate a working command-line for you:
https://winscp.net/eng/docs/guide_automation#generating
C:\Program Files (x86)\WinSCP>WinSCP.exe /log=c:\temp\winscp.log /command "open sftp://testuser:Pa%24%24word@PRD-DiscrptsOTS/ -hostkey=""ssh-ed25519 255 G1cKyAeALo4n+XxbA82L8Q+tMVNZXVentxavvnVqoho""" "put ""c:\Temp\test SFTP file.txt"" /C:/Users/testuser/Documents/*.*"
See https://winscp.net/eng/docs/commandline#syntax
WinSCP GUI can also generate a working command-line for you:
https://winscp.net/eng/docs/guide_automation#generating