[mrtg] Dir parsing problem

Neil Pike NeilPike at compuserve.com
Thu Jul 12 12:31:17 MEST 2001


 I'm stumped on this one.  I use a batch file and a FOR loop to process all
my cfg files, which works fine except it also picks up any temporary files
that MRTG creates with _l_l..... at the end.
 
 I want to be able to get a list back of just files that end in ".cfg" for
a batch file that uses a FOR loop.  However, I also get passed back files
like the one below - "test.cfg_l_l".  Any ideas on how I can ignore these
files?
 
 You get the same result with a dir command - e.g. dir *.cfg, dir *.cf? all
return these files and I don't want them.....

10/07/2001  14:13                9,136 RSTOKEATM1.Cfg
10/07/2001  14:13                9,138 RSTOKEATM2.Cfg
11/07/2001  16:21                6,744 snaserver.cfg
19/05/2001  20:57                5,621 SOS-MCC-R1.Cfg
19/05/2001  20:57                4,559 SOS-MCC-R2.Cfg
12/07/2001  10:39                    4 test.cfg_l_l    

Neil Pike

 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list