Could someone please write some code in vb that looks through a drive and its subdirs looking for a specific file type and outputs it into a checked list box?
Printable View
Could someone please write some code in vb that looks through a drive and its subdirs looking for a specific file type and outputs it into a checked list box?
Code:Dim files() As String = IO.Directory.GetFiles("C:\Windows", "*.exe", IO.SearchOption.AllDirectories)
ListBox1.Items.AddRange(files)