This is an old revision of the document!
Scripting and Task Automation
Advertisement
In addition to graphical interface, WinSCP offers scripting/console interface with many commands. The commands can be typed in interactively, or read from script file or another source.
Using scripting interface directly is recommended for simple tasks not requiring any control structures. For complex tasks, using WinSCP .NET assembly is preferred.
Using Scripting
See command-line parameters to learn how to enter the console/scripting mode.
Advertisement
For automation, commands can be read from a script file specified by /script
switch, from standard input or passed from the command-line using the /command
switch.
By default an interactive mode is used (the user is prompted in the sam