Differences

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

2015-08-26 2015-08-26
created (martin) discourage from using stored session (martin)
Line 12: Line 12:
| ''-bc'' | Use an ''[[scriptcommand_option|option echo on]]'' command at the beginning of the script. | | ''-bc'' | Use an ''[[scriptcommand_option|option echo on]]'' command at the beginning of the script. |
| ''-be'' | Use an ''[[scriptcommand_option|option batch on]]'' command at the beginning of the script (to counter [[scripting#using_scripting|the default]] ''option batch abort''). | | ''-be'' | Use an ''[[scriptcommand_option|option batch on]]'' command at the beginning of the script (to counter [[scripting#using_scripting|the default]] ''option batch abort''). |
-| ''-load sessname'' | [[ui_import|Import your PuTTY stored session to WinSCP]] and use an ''[[scriptcommand_open|open sessname]]'' command in the script. |+| ''-load sessname'' | [[ui_import|Import your PuTTY stored session to WinSCP]] and use an ''[[scriptcommand_open|open sessname]]'' command in the script. Though this makes the script dependent on GUI configuration (see [[#ini|below]]). You should better use a [[ui_generateurl|Generate URL function]] and use the generated session URL in an ''[[scriptcommand_open|open]]'' command in the script. |
| ''-l user'' | Specify the username in a [[session_url|session URL]] in an ''[[scriptcommand_open|open]]'' command in the script. \\ Example: ''open %%sftp://user@example.com/%%'' | | ''-l user'' | Specify the username in a [[session_url|session URL]] in an ''[[scriptcommand_open|open]]'' command in the script. \\ Example: ''open %%sftp://user@example.com/%%'' |
| ''-P port'' | Specify the port number in a [[session_url|session URL]] in an ''[[scriptcommand_open|open]]'' command in the script. \\ Example: ''open %%sftp://example.com:port/%%'' | | ''-P port'' | Specify the port number in a [[session_url|session URL]] in an ''[[scriptcommand_open|open]]'' command in the script. \\ Example: ''open %%sftp://example.com:port/%%'' |

Last modified: by martin