Re: A simple Windows script. A simple list of commands.
You should have started here:
Automate file transfers (or synchronization) to FTP server or SFTP server
Some of your misunderstandings are also covered here:
Why are some WinSCP scripting commands specified in a batch file not executed/failing?
Anyway:
where the
The
(
https://winscp.net/eng/docs/scriptcommand_open
The easiest is to have WinSCP generate the script for you:
https://winscp.net/eng/docs/ui_generateurl#script
Automate file transfers (or synchronization) to FTP server or SFTP server
Some of your misunderstandings are also covered here:
Why are some WinSCP scripting commands specified in a batch file not executed/failing?
Anyway:
winscp.com /script=script.txt /ini=nul /log=script.log
where the
script.txt
will contain:
The
ftpes
stands for Explicit TLS. Though you can also use
open ftp://myName:myPassword@ftp.example.com/ -explicittls
(
-explicitssl
is deprecated).
https://winscp.net/eng/docs/scriptcommand_open
The easiest is to have WinSCP generate the script for you:
https://winscp.net/eng/docs/ui_generateurl#script