Differences

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

2020-12-02 2020-12-17
prevent interpreting /username in the url as a switch (2nd) (martin) 5.18 Bug 1821: Alternative way to provide credentials in scripting/command-line without URL-encoding (martin)
Line 73: Line 73:
    "exit"     "exit"
</code> </code>
 +
 +//In the latest beta version,// you can avoid the problem by specifying the credentials using the [[scriptcommand_open#username|''-username'']] and [[scriptcommand_open#password|''-password'']] switches: &beta
 +
 +<code batch>
 +winscp.com /log=winscp.log /ini=nul /command ^
 +    "open sftp://example.com/ -username=user@domain -password=password" ^
 +    "get *" ^
 +    "exit"
 +</code>
 +

Last modified: by martin