Differences

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

2011-07-31 2011-09-29
scripting#commands (martin) batch abort (martin)
Line 10: Line 10:
===== Commands ===== ===== Commands =====
To automate operation, you need to find out [[scripting#commands|commands]] necessary to implement it. For simple operations you need at least to: To automate operation, you need to find out [[scripting#commands|commands]] necessary to implement it. For simple operations you need at least to:
-  * Set script to be performed non-interactively. For most automation scripts, you should use commands ''[[scriptcommand_option|option batch on]]'' and ''[[scriptcommand_option|option confirm off]]''.+  * Set script to be performed non-interactively. For most automation scripts, you should use commands ''[[scriptcommand_option|option batch abort]]'' and ''[[scriptcommand_option|option confirm off]]''.
  * Open session using ''[[scriptcommand_open|open]]'' command.   * Open session using ''[[scriptcommand_open|open]]'' command.
  * Perform operation. For [[task_upload|uploads]] use ''[[scriptcommand_put|put]]'' command. For [[task_download|downloads]] use ''[[scriptcommand_get|get]]'' command. For [[task_synchronize_full|synchronization]] use ''[[scriptcommand_synchronize|synchronize]]'' command. For other operations, see [[scripting#commands|supported commands]].   * Perform operation. For [[task_upload|uploads]] use ''[[scriptcommand_put|put]]'' command. For [[task_download|downloads]] use ''[[scriptcommand_get|get]]'' command. For [[task_synchronize_full|synchronization]] use ''[[scriptcommand_synchronize|synchronize]]'' command. For other operations, see [[scripting#commands|supported commands]].
Line 43: Line 43:
<code winscp> <code winscp>
-option batch on+option batch abort
option confirm off option confirm off
open mysession open mysession
Line 64: Line 64:
<code> <code>
rem Generate temporary script to upload %1 rem Generate temporary script to upload %1
-echo option batch on > script.tmp+echo option batch abort > script.tmp
echo option confirm off >> script.tmp echo option confirm off >> script.tmp
echo open mysession >> script.tmp echo open mysession >> script.tmp

Last modified: by martin