Differences

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

2017-01-11 2017-02-06
explicit anchor use (martin) use /ini=nul (martin)
Line 184: Line 184:
Save the script to the file ''example.txt''. To execute the script file use the following command. Save the script to the file ''example.txt''. To execute the script file use the following command.
<code batch> <code batch>
-winscp.com /script=example.txt+winscp.com /ini=nul /script=example.txt
</code> </code>
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 "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"+winscp.com /ini=nul /command "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>
Line 195: Line 195:
<code batch> <code batch>
-winscp.com /command ^+winscp.com /ini=nul /command ^
    "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""" ^     "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:\" ^     "get examplefile.txt d:\" ^

Last modified: by martin