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:password@example.com/" "put examplefile.txt /home/user/" "exit"

However you may want to use a script file anyway, so you can later expand it:

option batch abort
option confirm off
open sftp://user:password@example.com/
put examplefile.txt /home/user/

To run the script use following command (providing you have saved the script to file example.txt):

winscp.com /script=example.txt

Further Reading

  script_upload_single_file.txt · Last modified: by prikryl

Search Documentation

This page


About donations

$9   $19   $49   $99

About donations



Site design by Black Gate