Command Line Options
Running WinSCP non-interactively from the command line.
winscp.com (the console counterpart to the GUI executable) accepts session URLs, script files, and a range of flags for logging, exit codes, and batch behavior.
This is the same engine used by the scripting language and the .NET assembly, so behavior is consistent across all three.
Part of the WinSCP documentation.