General discussion

Locked

batch file for ftp

By k4k ·
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.

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

batch file for ftp

by EAU In reply to batch file for ftp

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

Collapse -

batch file for ftp

by k4k In reply to batch file for ftp

Poster rated this answer

Collapse -

batch file for ftp

by Mr. Ezekial Transistor In reply to batch file for ftp

In your file put
open IP ADDRESS GOES HERE
login
password
REST OF YOUR FILE

Collapse -

batch file for ftp

by k4k In reply to batch file for ftp

Poster rated this answer

Collapse -

batch file for ftp

by ecrist In reply to batch file for ftp

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

Collapse -

batch file for ftp

by k4k In reply to batch file for ftp

Poster rated this answer

Collapse -

batch file for ftp

by Uch In reply to batch file for ftp

I suggest you creat a Batch file with the follwong text:
ftp -n -s:<ftp-filename.txt>
<the rest of ya DOS based commands go here>

Then create the <ftp-filename.txt> like this:
open <IP address>
user <Login name> <Login Password>
<lcd or other FTP navigation commands>
<ascii or binary commands>
<FTP fetch commands eg: get or put>
<continue other commands>
<bye or exit>


Goodluck!

Collapse -

batch file for ftp

by Uch In reply to batch file for ftp

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

Collapse -

batch file for ftp

by Uch In reply to batch file for ftp

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.

Collapse -

batch file for ftp

by k4k In reply to batch file for ftp

Poster rated this answer

Back to Windows Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums