Hello,
I am having problem to download files via a bat script from an ftp server.
When I do it manually (typing the commands into the ftp prog) it works. However this is no option as there are many files to download regularly.
The page advice me to use PASV, but I am not sure how to specify it. I've looked at some discussion group's round about, and they that you should enter 'passive' or 'PASV' as a command after logon. But when I do it, ftp replies that it is an unknown command.
I am working on an xp professional, Version 2002, Service Pack 2.
This is a paste of my script:
ftp -d -s:ftp_komd.txt -a -A www.xxx.com
connected to www.xxx.com
220 Authorized users only. All activity may be monitored and reported.
---> USER anonymous
331 Please specify the password.
---> PASS Me@here
230 Login successful.
Anonymous logon completed for Me@here
ftp> cd /data/
---> CWD /data/
250 Directory successfully changed.
ftp> lcd C:\Test\Data
Local dir now C:\Test\Data.
ftp> get Test.txt
---> PORT 0,0,0,0,5,85
200 PORT command successful. Consider using PASV.
---> RETR Test.txt
550 Failed to open file.
Any help appreciated.
Kurt