Differences

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

2011-11-08 2011-11-08
Clarity (207.107.36.14) fixing factual accuracy of clarity changes by anonymous user (martin)
Line 108: Line 108:
</code> </code>
-To use the double-quote as a literal, use two double·quotes sequentially. For example, the ''/command'' expects that the script will be structured as an in-line FTP script and that each line of the script is enclosed in double quotes. In addition, any part of a line within the script that includes spaces is expected to be enclosed with double·quotes within the line so that the complete line is passed as a single string (See [[scripting#syntax|doubling double-quotes]]):+To use the double-quote as a literal, use two double-quotes sequentially. For example, the ''/command'' expects that each script commands is enclosed in double quotes so that is passed as a single command-line argument. In addition, any script command argument that includes spaces is expected to be enclosed with double-quotes within the command (see [[scripting#syntax|doubling double-quotes]]):
<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"""
-                    |<- Script line 1 ->| |<- ··················Script line 2 ························->|+                    <-  script cmd 1 ··-> <- ····················script cmd 2 ·························->
</code> </code>
-An Argument that begins with a slash is considered a switch. To pass a parameter that itself uses the slash in its syntax (i.e. a remote path like ''/root''), use the special switch ''%%//%%'' (two slashes) before the argument. The switch ''%%//%%'' consolidates any arguments following the double slash into a single passed parameter. Example:+An argument that begins with a slash is considered a switch. To pass a parameter that itself uses the slash in its syntax (i.e. a remote path like ''/root''), use the special switch ''%%//%%'' (two slashes) before the argument. The switch ''%%//%%'' denotes that all following arguments are not switches. 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 martin