Contents » Features » Scripting » Useful Scripts »
Uploading a single file
A single file upload involves so few commands that it is enough to provide them on the command line, saving writing a script file:
winscp.com /command "option batch abort" "option confirm off" "open sftp://user:firstname.lastname@example.org/" "put examplefile.txt /home/user/" "exit"However you may want to use a script file anyway, so you can later expand it:
What would be the corresponding example for the GET command to retrieve the same examplefile.txt that was just placed into the /home/user directory?
The documentation on WinSCP is completely lacking on the GET command. WinSCP is a free program, so I am appreciative of any assistance that can be rendered.