I am writing a batch file that will download a file from an ftp site. I have written batch files before but am new to the FTP side of it. Here is what I have so far.
echo open ipaddress 950>>ftpbat.txt
echo anonymous>>ftpbat.txt
echo batscript@pccaresupport.com>>ftpbat.txt
echo binary>>ftpbat.txt
echo prompt n>>ftpbat.txt
echo mget file.msi>>ftpbat.txt
echo bye>>ftpbat.txt
ftp -s:ftpbat.txt
del ftpbat.txt
it connects to the ftp site correctly and logs in but when it tries to run the mget command I get an error "Invalid PORT Command." I have no idea what to do with this.
echo open ipaddress 950>>ftpbat.txt
echo anonymous>>ftpbat.txt
echo batscript@pccaresupport.com>>ftpbat.txt
echo binary>>ftpbat.txt
echo prompt n>>ftpbat.txt
echo mget file.msi>>ftpbat.txt
echo bye>>ftpbat.txt
ftp -s:ftpbat.txt
del ftpbat.txt
it connects to the ftp site correctly and logs in but when it tries to run the mget command I get an error "Invalid PORT Command." I have no idea what to do with this.