By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Using FileSystem.GetFiles and regular expression ?

P: n/a
I need to find recursively all the files which have extension .mdb so I
did that:

files = My.Computer.FileSystem.GetFiles("C:\Databases",
FileIO.SearchOption.SearchAllSubDirectories, "*.mdb")

Now I want to exclude the file which contain the strings "_Backup" or
"basket" in the filename (and still filtering on *.mdb). I suppose I
should use regular expressions, but I can't figure out what the
expression should look like. Can you help ?


Nov 17 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.