I just want to be able to pass the ftp url, user and password as parameters to the script; this is how I'm doing it:
On console, I type:
winscp_batch.bat ftp_url ftp_user ftp_password
(ftp_url would be "anyftp.com" (without quotes), etc.)
On the .bat I have:
C:\Apps\WinSCP\winscp.com /script=c:\scripts\ftp_script.txt /parameter %1 %2 %3
And in ftp_script.txt I have:
option batch continue
option confirm off
open ftp://%2%:%3%@%1% -explicittls
It works well if I use only 1 parameter, but I can't have it working with 2 or 3 parameters.
Could someone please help me finding whay I'm doing wrong?
(please excuse my english; it's not my native language)