Differences

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

2020-12-03 2021-01-07
formatting (martin) no summary (15.236.126.70) (hidden) (untrusted)
Line 217: Line 217:
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 "lcd local_dir" "cd remote_dir" "get remote_file"
winscp.com /command "open sftp://... -hostkey=""ssh-rsa ...""" "put ""C:\my file.dat""" winscp.com /command "open sftp://... -hostkey=""ssh-rsa ...""" "put ""C:\my file.dat"""
                    <-          Script command 1          -> <-  Script command 2  ->                     <-          Script command 1          -> <-  Script command 2  ->

Last modified: by 15.236.126.70