Differences

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

2015-08-25 2015-08-25
hostkey in simple script (193.190.120.66) removing the example without -hostkey (martin)
Line 191: Line 191:
For simple scripts you can specify all the commands on [[commandline|command-line]] using ''/command'' switch: For simple scripts you can specify all the commands on [[commandline|command-line]] using ''/command'' switch:
<code batch> <code batch>
-winscp.com /command "option batch abort" "open sftp://user:password@example.com/" "get examplefile.txt d:\" "exit" +winscp.com /command "option batch abort" "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""" "get examplefile.txt d:\" "exit"
-</code> +
- +
-<code batch> +
-winscp.com /command "option batch abort" "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""·" "get examplefile.txt d:\" "exit"+
</code> </code>

Last modified: by martin