Differences

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

2013-07-02 2013-07-29
Restored revision 1370082721. Undoing revision 1372738725. (Petr) (hidden) added explicit protocol to session url (martin)
Line 140: Line 140:
close close
# Connect as a different user # Connect as a different user
-open user2@example.com+open sftp://user2@example.com
# Change the remote directory # Change the remote directory
cd /home/user2 cd /home/user2
Line 157: Line 157:
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> <code>
-winscp.exe /console /command "option batch abort" "open user@example.com" "get examplefile.txt d:\" "exit"+winscp.exe /console /command "option batch abort" "open sftp://user@example.com" "get examplefile.txt d:\" "exit"
</code> </code>

Last modified: by martin