Automated FTP Batchfile


#1

Howdy folks, Im just trying to come up with a simple batch file that will download a tarball off my ftp account and i can’t seem to get past the login. Here is my batch file:

ftp -n salt.dreamhost.com
user
username
password
binary
get test.txt
quit

Thanks for any help!


#2

Alright, well I changed things around a bit but still seem to be having a problem:

ftp -n salt.dreamhost.com
user username password
bin
get test.txt
quit

It is not getting past the login stage, i get a 530 error


#3

Got it solved, ugh, just needed to set it up like this

ftp -n -s:ftp1.bat salt.dreamhost.com

then in the ftp1.bat file put the login info and commands…

user username password
commands
blah blah
quit

Works awesome