Solved

how to pick file up from ftp via batch file

Posted on 2016-12-01
2
94 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 56

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

623 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