You can use VB.NET function GetFiles for that. Here is the example:
Public Sub GetListOfTifFiles()
' Only get TIF files
Dim files As String() = System.IO.Directory.GetFiles("c:\", "*.tif")
Debug.Print(String.Format("The number of TIF files is {0}.", files.Length))
Dim fn As String
For Each fn In files
Debug.Print(fn)
Next
End Sub
Answers
You can use VB.NET function GetFiles for that. Here is the example:
You can get more info here:
http://msdn.microsoft.com/en-us/library/wz42302f(v=vs.110).aspx
Regards,
Yuri