Differences

This shows you the differences between the selected revisions of the page.

2014-08-04 2014-08-27
password in all open examples (martin) batch file syntax highlighting (martin)
Line 151: Line 151:
</code> </code>
Save the script to the file ''example.txt''. To execute the script file use the following command. Save the script to the file ''example.txt''. To execute the script file use the following command.
-<code>+<code batch>
winscp.exe /console /script=example.txt winscp.exe /console /script=example.txt
</code> </code>
For simple scripts you can specify all the commands on [[commandline|command-line]] using ''/command'' switch: For simple scripts you can specify all the commands on [[commandline|command-line]] using ''/command'' switch:
-<code>+<code batch>
winscp.exe /console /command "option batch abort" "open sftp://user:password@example.com/" "get examplefile.txt d:\" "exit" winscp.exe /console /command "option batch abort" "open sftp://user:password@example.com/" "get examplefile.txt d:\" "exit"
</code> </code>

Last modified: by martin