Get a collection of files whose names match a regular expression?



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
.



Relevant Pages