Differences

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

2017-02-06 2017-02-14
put /ini=nul first as with /command it would look bad to put it after (martin) no summary (40.136.196.34) (hidden) (untrusted)
Line 34: Line 34:
You can have WinSCP [[ui_generateurl|generate a script template for you]] or even a complete batch file. You can have WinSCP [[ui_generateurl|generate a script template for you]] or even a complete batch file.
-===== [[script_file]] Script file ===== +option batch on 
-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]]. +option confirm off 
- +open patrickbisch@ftp.howtogeek.com 
-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: +cd backups 
-<code batch> +option transfer binary 
-@echo off +get /testremote* f:\backups\testlocal\* 
-winscp.com /ini=nul /script=myscript.txt +synchronize local f:\backups\testlocal testremote 
-</code> +exit
- +
-~~AD~~+
===== [[using]] Using script ===== ===== [[using]] Using script =====

Last modified: by 40.136.196.34