Differences

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

2011-11-02 2011-11-08
ui_login_connection#connection (martin) no summary (207.107.36.14)
Line 103: Line 103:
===== [[syntax]] Syntax ===== ===== [[syntax]] Syntax =====
-Command-line parameters that include space(s) have to be enclosed in double-quotes:+Command-line parameters that include space(s) must be enclosed in double-quotes:
<code> <code>
winscp.exe /ini="C:\Documents and Settings\martin\Documents\myconfig.ini" winscp.exe /ini="C:\Documents and Settings\martin\Documents\myconfig.ini"
</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 [[scripting#syntax|doubling double-quotes]] applies to script command as well.)):+To use the double-quote as a literal, use two of them. For example, the ''/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"""
</code> </code>
-Argument starting with slash is considered as switch. If you need to pass parameter with such syntax (i.e. typically a remote path like ''/root''), you need to use special switch ''%%//%%'' (two slashes) before the argument. The switch ''%%//%%'' denotes that all following arguments are not switches. Example:+An Argument that begins with a slash is considered a switch. If you need to pass a parameter with such syntax (i.e. typically a remote path like ''/root''), you need to use special switch ''%%//%%'' (two slashes) before the argument. The switch ''%%//%%'' signals that any arguments following the double slash are considered part of the parameter to be passed. Example:
<code> <code>
winscp.exe /synchronize // "C:\Documents and Settings\martin\Documents\MySite" /root winscp.exe /synchronize // "C:\Documents and Settings\martin\Documents\MySite" /root

Last modified: by 207.107.36.14