https://stackoverflow.com/questions/16150152/secure-ftp-using-windows-batch-script
First, make sure you understand, if you need to use Secure FTP (=FTPS, as per your text) or SFTP (as per tag you have used).
Neither is supported by Windows command-line ftp.exe
. As you have suggested, you can use WinSCP. It supports both FTPS and SFTP.
Using WinSCP, your batch file would look like (for SFTP):
Master Password
WinSCP can protect stored passwords by strong AES cipher. In order to protect such sensitive information you need to set a master password. When a master password is not set, stored passwords can be easily decrypted by malicious software that has infiltrated your computer.
Working with Master Password
If you set the master password, each new instance of WinSCP will ask you to enter the master password the first time it needs to access protected passwords or to protect a new password.
You can change or remove the master password again later. If you remove the master password, all of the passwords will not be protected anymore.
You can set the master password in preferences.