vb Code:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Using fbd As New FolderBrowserDialog If fbd.ShowDialog = Windows.Forms.DialogResult.OK Then For Each foundFile As String In IO.Directory.GetFiles(fbd.SelectedPath, "*.wav", IO.SearchOption.AllDirectories) If ListBox1.FindStringExact(foundFile) > -1 Then ListBox2.Items.Add(foundFile) Else ListBox3.Items.Add(foundFile) End If Next End If End Using End Sub End Class




Reply With Quote
