Re: upload a file dont work
This is my .bat script
open sftp://myuser:mypassword@192.168.1.21/
put skrpta.sh /home/Test/Desktop
exit
How do you run this?
The above is not .bat (batch file), it's WinSCP script.
You have to run it using
winscp.com
, like:
winscp.com /script=upload.txt
Where the
upload.txt
is your ".bat script".
See also https://winscp.net/eng/docs/guide_automation