commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2013-11-16 | 2013-11-16 | ||
separate logging sextion (martin) | "my site" (martin) | ||
Line 51: | Line 51: | ||
<code> | <code> | ||
- | winscp.exe "My session" | + | winscp.exe "My site" |
winscp.exe sftp://martin@example.com /hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" | winscp.exe sftp://martin@example.com /hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" | ||
winscp.exe scp://test@example.com:2222 /privatekey=mykey.ppk | winscp.exe scp://test@example.com:2222 /privatekey=mykey.ppk | ||
Line 82: | Line 82: | ||
<code> | <code> | ||
winscp.com /script="C:\Users\martin\Documents\myscript.txt" | winscp.com /script="C:\Users\martin\Documents\myscript.txt" | ||
- | winscp.com /command "open ""My session"" -hostkey=""ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""" | + | winscp.com /command "open ""My site"" -hostkey=""ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""" |
- | winscp.com /command "open ""My session""" "put ""C:\Users\martin\Documents\myfile.dat""" | + | winscp.com /command "open ""My site""" "put ""C:\Users\martin\Documents\myfile.dat""" |
winscp.exe /console /script="myscript.txt" | winscp.exe /console /script="myscript.txt" | ||
</code> | </code> | ||
Line 124: | Line 124: | ||
To use the double-quote as a literal, use two double-quotes sequentially. For example, the ''/command'' expects that each script commands is surrounded by 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 surrounded by double-quotes within the command (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 surrounded by 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 surrounded by double-quotes within the command (see [[scripting#syntax|doubling double-quotes]]): | ||
<code> | <code> | ||
- | winscp.com /command "open ""My session""" "put ""C:\Users\martin\Documents\myfile.dat""" | + | winscp.com /command "open ""My site""" "put ""C:\Users\martin\Documents\myfile.dat""" |
- | <- ·script cmd 1 ··-> <- script cmd 2 -> | + | <- script cmd 1 -> <- script cmd 2 -> |
</code> | </code> | ||