commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2024-06-24 | 2024-06-24 | ||
Fixed Powershell Syntax code examples that had winscp.com instead of winscp.exe (44.214.20.31) | old revision restored - why do you believe the winscp.com example was wrong? (martin) | ||
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.exe /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 -> | ||
</code> | </code> | ||
Line 234: | Line 234: | ||
<code batch> | <code batch> | ||
- | winscp.exe /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 -> | ||
</code> | </code> |