commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2011-07-30 | 2011-07-31 | ||
ftp (martin) | scriptcommand_* (martin) | ||
Line 42: | Line 42: | ||
Parameters ''/implicit'', ''/explicitssl'' and ''/explicittls'' enable respective [[ftps#methods_of_invoking|methods of invoking FTPS]]. | Parameters ''/implicit'', ''/explicitssl'' and ''/explicittls'' enable respective [[ftps#methods_of_invoking|methods of invoking FTPS]]. | ||
- | When using [[scripting]], use ''[[script_commands#open|open]]'' command (and its switches) instead. This allows you settings [[script_commands#option|script options]] before starting session. | + | When using [[scripting]], use ''[[scriptcommand_open|open]]'' command (and its switches) instead. This allows you settings [[scriptcommand_option|script options]] before starting session. |
With ''/log'' parameter you may turn on [[logging|session logging]] to file specified by [[local_path|local path]]. If the log file name has ''.xml'' extension, [[logging_xml|XML logging]] is used. | With ''/log'' parameter you may turn on [[logging|session logging]] to file specified by [[local_path|local path]]. If the log file name has ''.xml'' extension, [[logging_xml|XML logging]] is used. | ||
Line 59: | Line 59: | ||
To run batch script either pass script file using ''/script'' parameter or specify the commands directly on command line using ''/command''. In the latter case each following parameter is treated as single command. See [[commandline#syntax|syntax section]] and examples below for details how to deal with spaces and double-quotes. | To run batch script either pass script file using ''/script'' parameter or specify the commands directly on command line using ''/command''. In the latter case each following parameter is treated as single command. See [[commandline#syntax|syntax section]] and examples below for details how to deal with spaces and double-quotes. | ||
- | If both ''/script'' and ''/command'' parameters are used, commands from script file are executed first. When the last command is not ''[[script_commands#exit|exit]]'', regular non-batch mode follows. | + | If both ''/script'' and ''/command'' parameters are used, commands from script file are executed first. When the last command is not ''[[scriptcommand_exit|exit]]'', regular non-batch mode follows. |
- | Use parameter ''/parameter'' to specify list of arguments to be [[script_commands#syntax|passed to script]]. | + | Use parameter ''/parameter'' to specify list of arguments to be [[scripting#syntax|passed to script]]. |
With ''[[executables|winscp.exe]]'', if ''/console'' parameter is not used along with ''/script'' or ''/command'', the script/command is executed without visual feedback (window). | With ''[[executables|winscp.exe]]'', if ''/console'' parameter is not used along with ''/script'' or ''/command'', the script/command is executed without visual feedback (window). | ||
Line 103: | Line 103: | ||
</code> | </code> | ||
- | To use double-quote literally, double it. You will need this particularly with ''/command'' parameter to execute script command that includes script parameter with spaces((Note that [[script_commands#syntax|doubling double-quotes]] applies to script command as well.)): | + | To use double-quote literally, double it. You will need this particularly with ''/command'' parameter to execute script command that includes script parameter with spaces((Note that [[scripting#syntax|doubling double-quotes]] applies to script command as well.)): |
<code> | <code> | ||
winscp.com /command "open ""My session""" "put ""C:\Documents and Settings\martin\Documents\myfile.dat""" | winscp.com /command "open ""My session""" "put ""C:\Documents and Settings\martin\Documents\myfile.dat""" |