Get a collection of files whose names match a regular expression?
- From: Chrisso <chris75sutton@xxxxxxxxx>
- Date: Thu, 24 Jul 2008 04:05:50 -0700 (PDT)
Hi All
Is it possible with the Microsoft Scripting Runtime library to get a
collection of all the files in a folder that match a regular
expression?
That is, can I make a call through the FileSystemObject or a Folder
object to get just the files that start with the letter 'A' for
example?
The only API I can see is Folder.Files which gives *all* the files
then I would have to sort through and do the pattern matching myself
which seems like it will be very slow. Any ideas?
Thanks in advance,
Chrisso
.
- Follow-Ups:
- Re: Get a collection of files whose names match a regular expression?
- From: rowe_newsgroups
- Re: Get a collection of files whose names match a regular expression?
- Prev by Date: Re: Collection/list problem
- Next by Date: Re: Get a collection of files whose names match a regular expression?
- Previous by thread: Collection/list problem
- Next by thread: Re: Get a collection of files whose names match a regular expression?
- Index(es):
Relevant Pages
|