Solved

how to pick file up from ftp via batch file

Posted on 2016-12-01
2
87 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 55

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

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…
AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

734 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