Question : Batch File FTP

I need to automate a FTP tranfser to an external site. Also before the transfer takes place I need to have the FTP session in Binary mode. How would I go about creating a script or batch file to do this?

Answer : Batch File FTP

put your ftp commands in text file, e.g. myftp.txt

user1
password1
lcd c:\mylocaldir
binary
get remotefile
quit

then from the command line run:

ftp -s:c:\dirname\myftp.txt remotehost (either hostname or IP address of the remote system)
Random Solutions  
 
programming4us programming4us