commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2017-09-05 | 2017-10-16 | ||
released 5.11 stable (martin) | code wrapping for new design (martin) | ||
Line 18: | Line 18: | ||
winscp.exe [mysession] [/timeout=<sec>] | winscp.exe [mysession] [/timeout=<sec>] | ||
winscp.exe [mysession] [/rawsettings setting1=value1 setting2=value2 ...] | winscp.exe [mysession] [/rawsettings setting1=value1 setting2=value2 ...] | ||
- | winscp.exe [/console] [/script=script_file] [/command command1 command2 ...] [/parameter // param1 ...] | + | winscp.exe [/console] [/script=script_file] [/command command1 command2 ...] |
- | winscp.exe [/log=<logfile> [/loglevel=<level>] [/logsize=[count*]<size>]] [/xmllog=<logfile> [/xmlgroups]] | + | ··········[/parameter // param1 ...] |
+ | winscp.exe [/log=<logfile> [/loglevel=<level>] [/logsize=[count*]<size>]] | ||
+ | ··········[/xmllog=<logfile> [/xmlgroups]] | ||
winscp.exe [/ini=<inifile>] | winscp.exe [/ini=<inifile>] | ||
winscp.exe [/rawconfig config1=value1 config2=value2 ...] | winscp.exe [/rawconfig config1=value1 config2=value2 ...] | ||
Line 30: | Line 32: | ||
Parameters for ''[[executables|winscp.com]]'' executable: | Parameters for ''[[executables|winscp.com]]'' executable: | ||
<code batch> | <code batch> | ||
- | winscp.com [/script=script_file] [/command command1 command2 ...] [/parameter // param1 ...] | + | winscp.com [/script=script_file] [/command command1 command2 ...] |
- | winscp.com [/log=<logfile> [/loglevel=<level>] [/logsize=[count*]<size>]] [/xmllog=<logfile> [/xmlgroups]] [/nointeractiveinput] | + | ··········[/parameter // param1 ...] |
+ | winscp.com [/log=<logfile> [/loglevel=<level>] [/logsize=[count*]<size>]] | ||
+ | ··········[/xmllog=<logfile> [/xmlgroups]] [/nointeractiveinput] | ||
winscp.com [/ini=<inifile>] | winscp.com [/ini=<inifile>] | ||
winscp.com [/rawconfig config1=value1 config2=value2 ...] | winscp.com [/rawconfig config1=value1 config2=value2 ...] | ||
Line 68: | Line 72: | ||
<code batch> | <code batch> | ||
winscp.exe "My site" | winscp.exe "My site" | ||
- | winscp.exe sftp://martin:password@example.com/ /hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" | + | winscp.exe sftp://martin:password@example.com/ /hostkey="ssh-rsa 2048 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 | ||
winscp.exe ftps://martin:password@example.com/ | winscp.exe ftps://martin:password@example.com/ | ||
Line 105: | Line 109: | ||
<code batch> | <code batch> | ||
winscp.com /script="C:\Users\martin\Documents\myscript.txt" | winscp.com /script="C:\Users\martin\Documents\myscript.txt" | ||
- | winscp.com /command "open sftp://martin@example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx...""" "exit" | + | winscp.com /command "open sftp://martin@example.com/ -hostkey=""ssh-rsa 2048 xx:xx...""" "exit" |
winscp.exe /console /script="myscript.txt" /log="myscript.log" | winscp.exe /console /script="myscript.txt" /log="myscript.log" | ||
</code> | </code> | ||
Line 195: | Line 199: | ||
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://example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx:...""" "put ""C:\Users\martin\Documents\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> | ||