I am trying to write a script to automatically download a file from an ftp server and am not having much luck. Looking for help. Here is the batch file I created. When I run, I see that it is trying to connect to the FTP server, connection times out and fails. Could someone help me?
cd /d C:\Program Files (x86)\WinSCP
winscp ftp://USERID:PASSWORD@XYZ.MYSITE.com/DIRECTORY WHERE FILE IS LOCATED /explicittls
When I look at site manager I see the port number set to 31110. When I run my script the log file show the (Port: 21). In the open command is there a way to change port to 31110?. I tried adding this to the open command -port=31110 and the script will not even run.