Get file paths of a specific format in a folder and store them in an ArrayList
Interface:Code:
Public Class Form1
Dim file As New ArrayList
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each filetmp As String In My.Computer.FileSystem.GetFiles(TextBox1.Text, FileIO.SearchOption.SearchTopLevelOnly, "*." & TextBox2.Text)
file.Add(filetmp)
Next
For y = 0 To file.Count - 1
ListBox1.Items.Add(file(y))
Next
End Sub
End Class
