Differences

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

2015-05-28 2015-09-15
explicittls is deprecated for a while already (martin) real-life open command with spaces example (martin)
Line 146: Line 146:
To use the double-quote as a literal, use two double-quotes sequentially. For example, the ''/command'' expects that each script command is surrounded by double quotes, so that it is passed as a single command-line argument. In addition, any script command argument that includes spaces is expected to be surrounded by double-quotes within the command (see [[scripting#quotes|doubling double-quotes]]): To use the double-quote as a literal, use two double-quotes sequentially. For example, the ''/command'' expects that each script command is surrounded by double quotes, so that it is passed as a single command-line argument. In addition, any script command argument that includes spaces is expected to be surrounded by double-quotes within the command (see [[scripting#quotes|doubling double-quotes]]):
<code batch> <code batch>
-winscp.com /command "open ""My site""" "put ""C:\Users\martin\Documents\myfile.dat""" +winscp.com /command "open sftp://example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx:...""" "put ""C:\Users\martin\Documents\my file.dat""" 
-                    <- script cmd 1 -> <- ··············script cmd 2 ··············->+                    <-                       Script command 1 ·····················-> <- ············Script command 2 ·············->
</code> </code>

Last modified: by martin