🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #65

FindFirst and File Mask

#65
From: M Tuttle
Date: Wed, 21 Jan 2004 17:19
30 lines
1643 bytes
Greetings All,

I have a directory that contains the following files

...
10265435.DBF
10265435.CDX
10265435.FPT
90562514.DBF
90562514.CDX
90562514.FPT
BANK.DBF
BANK.CDX
BANK.FPT
...

I was trying to write a utility that would delete all files from a specific
directory where the filename was numeric.  As you can see I cannot use a
file mask of *.DBF.  Is there any file mask I can specify that would delete
just the numeric filenames?

Any tips appreciated.

Thanks to all who reply.


-- 
Michael Tuttle
Software Technologies, Inc.
Topeka, KS
Technical Details
Message-ID: <400eb491$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!eusc.inter.net!npeer.de.kpn-eurorings.net!newsfeed.kabelfoon.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,3032b452282f4808,start
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-21 09:30:32 PST
From: "M Tuttle" <miket@softtechks.com>
Newsgroups: borland.public.delphi.nativeapi
Subject: FindFirst and File Mask
Date: Wed, 21 Jan 2004 11:19:20 -0600
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 68.102.168.247
Message-ID: <400eb491$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074705553 68.102.168.247 (21 Jan 2004 09:19:13 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!eusc.inter.net!npeer.de.kpn-eurorings.net!newsfeed.kabelfoon.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail