Differences

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

2021-06-30 2021-11-24
guide_automation_conditional#scripting (martin) no summary (155.190.53.5) (hidden) (untrusted)
Line 32: Line 32:
</code> </code>
-===== [[script_file]] Script file ===== +ghfut
-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 =====

Last modified: by 155.190.53.5