Directory Contents

tehon3299

Well-known member
Joined
Jan 6, 2003
Messages
155
Location
Liverpool, NY
Can you please tell me how I would be able to read the whole contents of a folder of pictures and output a list of the files on an aspx page?
 
Code:
Dim sFiles() As String = System.IO.Directory.GetFiles("C:\")

You can also specify a search pattern like so:

Code:
Dim sFiles() As String = System.IO.Directory.GetFiles("C:\", "*.bmp")
 
Back
Top