Re: Password prompt when just entering session in cmd/console
If your saved site is indeed named
https://winscp.net/eng/docs/scripting#configuration
If this does not work, attach a log file both from the script and GUI.
Though as the link above also shows, this is may actually not be the best approach.
Instead, you can have WinSCP GUI generate a script file with complete settings:
https://winscp.net/eng/docs/ui_generateurl#script
user@sftp.test.ca
, then using the open user@sftp.test.ca
command in scripting should use the saved site (including the password). Of course, as long as the script shares configuration with GUI (what typically requires that you run the script using the same local account).
https://winscp.net/eng/docs/scripting#configuration
If this does not work, attach a log file both from the script and GUI.
Though as the link above also shows, this is may actually not be the best approach.
Instead, you can have WinSCP GUI generate a script file with complete settings:
https://winscp.net/eng/docs/ui_generateurl#script