Re: Saved Sessions using in Batchfile
Your solution is correct for your specific approach.
For alternatives to protecting the credentials, see:
https://beta.winscp.net/eng/docs/guide_protecting_credentials_for_automation
For alternatives to protecting the credentials, see:
https://beta.winscp.net/eng/docs/guide_protecting_credentials_for_automation