On Mon, 15 Jan 2007 10:06:31 -0000, MS wrote:
I am looking to get a list of files for a URL reference such as
http://localhost/manager/ for a certain search pattern say "*.xls". How do I
go about this using VB and what class libraries are best to use. If anyone
has any code or can redirect me to a better site then that would be great.
Thanks in advance.
System.IO is your friend.
Once you have imported it you can do this:
'Get the physical path of the root
Dim folder As String = Page.MapPath("~")
'Get a string array of all excel files
Dim dirs As String() = Directory.GetFiles(folder, "*.xls")
--
Bits.Bytes
http://bytes.thinkersroom.com