Solved

how to pick file up from ftp via batch file

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

Accepted Solution

by:
Bill Prew earned 500 total points
Comment Utility
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
Comment Utility
Excellent
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now