Abhijat
2010-09-13 17:37:50 UTC
Hi Group,
Here is my situation:
I have a dos script 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_url ftp_pswd
mget *.*
mdelete *.*
quit
the master_list.txt can be
abcd
qwer
zxcv
asdf
poiu
---
----
Thanks very much!
~Abhijat
Here is my situation:
I have a dos script 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_url ftp_pswd
mget *.*
mdelete *.*
quit
the master_list.txt can be
abcd
qwer
zxcv
asdf
poiu
---
----
Thanks very much!
~Abhijat