Differences

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

2024-03-23 2024-06-24
Restored revision 1701845282. Undoing revision 1711158827. (martin) (hidden) Fixed Powershell Syntax code examples that had winscp.com instead of winscp.exe (44.214.20.31)
Line 227: Line 227:
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 sftp://... -hostkey=""ssh-rsa ...""" "put ""C:\my file.dat"""+winscp.exe /command "open sftp://... -hostkey=""ssh-rsa ...""" "put ""C:\my file.dat"""
                    <-          Script command 1          -> <-  Script command 2  ->                     <-          Script command 1          -> <-  Script command 2  ->
</code> </code>
Line 234: Line 234:
<code batch> <code batch>
-winscp.com /command "open sftp://... -hostkey=`"`"ssh-rsa ...`"`"" "put `"`"C:\my file.dat`"`""+winscp.exe /command "open sftp://... -hostkey=`"`"ssh-rsa ...`"`"" "put `"`"C:\my file.dat`"`""
                    <-            Script command 1            -> <-    Script command 2    ->                     <-            Script command 1            -> <-    Script command 2    ->
</code> </code>

Last modified: by 44.214.20.31