Differences

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

2020-04-29 2020-12-02
assert that it is a batch file problem (martin) prevent interpreting /username in the url as a switch (martin)
Line 10: Line 10:
echo Starting WinSCP echo Starting WinSCP
winscp.com /log=winscp.log /ini=nul winscp.com /log=winscp.log /ini=nul
-open sftp://username:password@example.com/+open sftp://user:password@example.com/
put d:\examplefile.txt put d:\examplefile.txt
exit exit
Line 21: Line 21:
  * With ''/script'' switch, you need to move your WinSCP commands into a separate text file, e.g. ''script.txt'': \\ <code winscp>   * With ''/script'' switch, you need to move your WinSCP commands into a separate text file, e.g. ''script.txt'': \\ <code winscp>
-open sftp://username:password@example.com/+open sftp://user:password@example.com/
put d:\examplefile.txt    put d:\examplefile.txt   
exit exit
Line 33: Line 33:
echo Starting WinSCP echo Starting WinSCP
winscp.com /log=winscp.log /ini=nul /command ^ winscp.com /log=winscp.log /ini=nul /command ^
-    "open sftp://username:password@example.com/" ^+    "open sftp://user:password@example.com/" ^
    "put d:\examplefile.txt" ^     "put d:\examplefile.txt" ^
    "exit"     "exit"

Last modified: by martin