Use the System.IO.Directory.GetFiles(string, string) method. The first
parameter is the path, and the second is the search pattern, which works
just like the file system.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Printing Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"Jeff Williams" <je***********@hardsoft.com.auwrote in message
news:13*************@corp.supernews.com...
>I have a list of file names I need to parse and check if they match a valid
expression.
I want this to work like you were listing a directory.
ie
*.doc dhows all doc
*.* shows all documents
*doc shows all those ending with doc
?abc.doc would show documents aabc.doc, babc.doc etc
etc