Differences
This shows you the differences between the selected revisions of the page.
2021-11-24 | 2021-11-24 | ||
no summary (155.190.53.5) (hidden) (untrusted) | Restored revision 1625040486. Undoing revision 1637783504. (martin) (hidden) | ||
Line 32: | Line 32: | ||
</code> | </code> | ||
- | ghfut | + | ===== [[script_file]] Script file ===== |
+ | Assemble the commands into a script file. You can name the script file as you like. See [[scripting#example|simple example]] and some [[scripts|useful scripts]]. | ||
+ | |||
+ | Use the ''/script'' [[commandline#scripting|command line]] option to pass the script to the WinSCP [[executables|executable]]. Generally, you should also use ''[[commandline#configuration|/ini=nul]]'' switch to [[scripting#configuration|isolate the script execution from GUI configuration]]. You can embed the complete command line into a Windows batch file (''.bat''), like as follows: | ||
+ | <code batch> | ||
+ | @echo off | ||
+ | winscp.com /ini=nul /script=myscript.txt | ||
+ | </code> | ||
+ | |||
+ | ~~AD~~ | ||
===== [[generating]] Generating script ===== | ===== [[generating]] Generating script ===== |