Differences
This shows you the differences between the selected revisions of the page.
2015-08-04 | 2015-08-24 | ||
typo (martin) | winscp script runs in batch mode now (martin) | ||
Line 30: | Line 30: | ||
winscp.com /script=script.txt | winscp.com /script=script.txt | ||
</code> | </code> | ||
- | |||
- | ===== [[batch]] Setting up Batch Mode ===== | ||
- | As opposed to ''ftp.exe'', WinSCP uses interactive mode by default, even when script is used. So your WinSCP script should typically start with the following commands to enable batch mode and to turn off overwrite confirmations: | ||
- | |||
- | <code winscp> | ||
- | option batch abort | ||
- | option confirm off | ||
- | </code> | ||
- | |||
- | Read more details about [[scripting#using_scripting|using scripting]]. | ||
===== [[ini]] Isolating Script from Graphical Mode ===== | ===== [[ini]] Isolating Script from Graphical Mode ===== | ||
Line 65: | Line 55: | ||
<code winscp> | <code winscp> | ||
- | option batch abort | ||
- | option confirm off | ||
open sftp://username:password@sftp.example.com/ | open sftp://username:password@sftp.example.com/ | ||
</code> | </code> | ||
- | |||
- | For ''option'' commands, see [[#batch|above]]. | ||
===== Converting Commands ===== | ===== Converting Commands ===== |