Scripting

Automating transfers with WinSCP's scripting language.

WinSCP includes a small scripting language purpose-built for file transfer tasks: connect, upload, download, sync, and disconnect, all from a plain text script.

Scripts run from the command line, which makes them easy to trigger from Task Scheduler, a CI pipeline, or another script.

For more complex automation, the .NET assembly exposes the same functionality as a proper API you can call from C#, PowerShell, or VBScript.

Part of the WinSCP documentation.