Re: Commands before script?
You can do it like:
Or even better, use environment variables in the script:
See also https://winscp.net/eng/docs/guide_protecting_credentials_for_automation
winscp.net sftp://username:password@example.com/ /script=script.txt
Or even better, use environment variables in the script:
open sftp://%USER%:%PASS%@example.com/
See also https://winscp.net/eng/docs/guide_protecting_credentials_for_automation