Topic "Newbie needs help with scirpting"

Author Message
nimmis
[View user's profile]

Joined: 2014-09-16
Posts: 8
Location: CA
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
exit
CMD
Advertisements
nimmis
[View user's profile]

Joined: 2014-09-16
Posts: 8
Location: CA
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.
nimmis
[View user's profile]

Joined: 2014-09-16
Posts: 8
Location: CA
I figured out the port issue. This works:

open ftp://<<username>>:<<password>>@xyz.celink.com:31110/ -explicittls -certificate="bb4:b4:0a:6f:4f:be:6f:0c:43:e9:52:e8:e8:3c:92:56:ce:03:7b:5b"
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Duplicate post:
https://winscp.net/forum/viewtopic.php?t=14321
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License