Well, you could recursively loop through the directory structure looking for
said files. something like:
Public Sub GetFiles(ByVal path As String, ByVal extension As String, ByVal
files As ArrayList)
For Each file As String In System.IO.Directory.GetFiles(path, extension)
files.Add(file)
Next
For Each directory As String In System.IO.Directory.GetDirectories(path)
GetFiles(directory, extension, files)
Next
End Sub
and you can use it via:
Dim files As New ArrayList
GetFiles(Server.MapPath("~"), "*.aspx", files)
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Milsnips" <mi******@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
Can anyone help out on this one?
i would like to find out all the ASPX and ASCX pages that are in my
project, and return them in an arraylist.
thanks,
Paul.