Solved

how to pick file up from ftp via batch file

Posted on 2016-12-01
2
68 Views
Last Modified: 2016-12-24
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

0
Comment
Question by:ammartahir1978
2 Comments
 
LVL 53

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 41908630
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
 

Author Closing Comment

by:ammartahir1978
ID: 41908663
Excellent
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question