how to pick file up from ftp via batch file

Hi All,

I want to pick same file everytime i double click on my batch file how can i do it i tried:

ftp 10.10.34.5
ediftp
1234567
lcd D:\LABELS\ChessODBCFiles\masterlist
cd ..
cd ..
cd data
binary
mget "8PBH1LIST.154"


disconnect
quit

Open in new window

ammartahir1978Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Bill PrewConnect With a Mentor Commented:
Create a small BAT file that runs FTP, and references the file you posted in your post.  Save your file as a TXT file.  So for example, save your ftp commands in your question as TESTFTP.TXT.  Then create a BAT script with the following in it.

ftp -i -s:testftp.txt

That will launch FTP and pass it the commands in the TXT file to execute.

~bp
0
 
ammartahir1978Author Commented:
Excellent
0
All Courses

From novice to tech pro — start learning today.