Differences
This shows you the differences between the selected revisions of the page.
2014-08-26 | 2014-08-27 | ||
library anchor (martin) | batch file syntax highlighting (martin) | ||
Line 5: | Line 5: | ||
A single file upload involves so few commands that it is enough to provide them on the command line, saving writing a script file: | A single file upload involves so few commands that it is enough to provide them on the command line, saving writing a script file: | ||
- | <code> | + | <code batch> |
winscp.com /command "option batch abort" "option confirm off" "open sftp://user:password@example.com/" "put examplefile.txt /home/user/" "exit" | winscp.com /command "option batch abort" "option confirm off" "open sftp://user:password@example.com/" "put examplefile.txt /home/user/" "exit" | ||
</code> | </code> | ||
Line 21: | Line 21: | ||
To run the script use following command (providing you have saved the script to file ''example.txt''): | To run the script use following command (providing you have saved the script to file ''example.txt''): | ||
- | <code> | + | <code batch> |
winscp.com /script=example.txt | winscp.com /script=example.txt | ||
</code> | </code> |