Discussion Locked

batch file for ftp

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i want to automate the FTP download by a batch file.
i have entered the series of commands in batch file. it connects to FTP site & asks for user & password . how do i automate this response , i mean what command should i use so that it takes user & password from a batch file.

11 replies

by eau

you may want to download a program call flashget from tucows.com. its a nice little download manager.

by ecrist

Create a ".bat" file that executes your ftp script as follows:
"FTP -s:path_to_ftp_script\ftpscrpt.ftp source_cmptr_name >FTPLOG.TXT"

The ftp script should be like this:

login id
login pwd
cd path_to_source_files
binary (optional)
get filename (-or-)
get filename diffpath\diff_filename
...
bye

by uch

I suggest you creat a Batch file with the follwong text:
ftp -n -s:

Then create the like this:
open
user

Goodluck!

by uch

NB: It is desirable that both files reside on ya root directory...C:\, D:\, or E:\

by uch

NB: It is desirable that both files reside on ya root directory...C:\, D:\, or E:\, then create a short cut to the batch file on ya Desktop.

This discussion is closed to new replies.