-
September 13th, 2010, 02:02 PM #1Junior Member
- Join Date
- Sep 2010
- Posts
- 2
DOS batch file to FTP download files by reading from the text file
Hi Group,
Here is my situation:
I have a dos batch file which downloads all the files from an ftp server
and once the download is complete, it deletes the file at the ftp
server. Files are continuously posted on the server and my script runs
every 30 minutes and does the same thing.
Here is my Question:
I have to now modify this script such that this operation of
downloading and deleting happens only on a few files. The nomenclature
of these files will be stored in a master file (say, master_file.txt),
one below the other. So, I understand I need to run a loop over all
the names in the master_file.txt and do the same thing. However, I am
unable to do so and seek the help of you experts.
My earlier code was:
@ECHO OFF
S:
cd S:\app\inbound\vendors
ftp -v -n -i -s:C:\BATCH\ftpscript1.txt
C:
:end
the ftpscript1.txt was
open <ftpproxy>
user ftp_proxy_user_name ftp_proxy_pswd
user ftp_user_name@ftp_url ftp_pswd
mget *.*
mdelete *.*
quit
the master_list.txt can be
abcd
qwer
zxcv
asdf
poiu
---
----
Thanks very much!
~Abhijat
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
DOS/batch file question
By Spider Monkey in forum Applications and Operating SystemsReplies: 6Last Post: March 30th, 2005, 07:39 PM -
DOS batch file for running CHKDISK? Can it be done?
By Abi Normal in forum Applications and Operating SystemsReplies: 3Last Post: June 29th, 2004, 03:42 AM -
lose DOS screen after batch file?
By John Prophet in forum Applications and Operating SystemsReplies: 1Last Post: October 11th, 2003, 01:49 AM -
Dos Batch File w/ Menu
By chris64 in forum Applications and Operating SystemsReplies: 4Last Post: April 15th, 2003, 08:28 PM -
Reading from a text file with java
By Turnip12 in forum Webmastering and ProgrammingReplies: 1Last Post: June 22nd, 2002, 12:40 AM



LinkBack URL
About LinkBacks



Reply With Quote

Via Wikipedia: Paranormal Witness is an American paranormal documentary television series described as featuring "eyewitness accounts" from "everyday people" who claim to have experienced paranormal...
Paranormal Witness is an American...