Start here:
https://winscp.net/eng/docs/guide_automation
With the latest RC release, you can have WinSCP generate the script or batch file for you:
https://winscp.net/eng/docs/guide_automation#generating
https://winscp.net/eng/docs/guide_automation
With the latest RC release, you can have WinSCP generate the script or batch file for you:
https://winscp.net/eng/docs/guide_automation#generating