I am sure you all have your functions for a recursive directory/file listing, or file searching by wildcard \function for .net, but here is another one, works great. I use it to get a list of all *.aspx pages in \a project like this.
Dim baseDirectory As System.IO.DirectoryInfo = New System.IO.DirectoryInfo(“c:\projects\SSO\â€)
Dim x As New DSF.SSO.Other.FileSearch(baseDirectory, "*.aspx")
Dim pageName As String = ""
x.Search(, "*.aspx")
lblMessage.Text = ""
For Each f As System.IO.FileInfo In x.Files
pageName = f.FullName.Substring(baseDirectory.ToString.Length - 1, (f.FullName.Length - baseDirectory.ToString.Length) + 1)
pageName = pageName.Replace("\", "/")
DSF.SSO.Page.DAL.InsertPage(Val(txtPageGenAppID.Text), pageName.ToLower, pageName.Substring(100, pageName.Length - 4), pageName, 1, 1, 1)
lblMessage.Text += pageName + Chr(13)
Next