FTP from batch file
I'm trying to use a batch file to download a package off my FTP server.
echo username >ftp.txt
echo >>ftp.txt
echo cd directory >>ftp.txt
echo get filename >>ftp.txt
ftp -s:ftp.txt server.com
The server is set to allow anonymous logins on username but when I run the script I get an error: 331 Password required for username
If there is any other useful information let me know.
-Alex
Solution 1:
Try "anonymous" as the login and an email address as the password. This is a very old standard for anonymous FTP.