Dim desktopDir As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Dim dirName As String = Path.Combine(desktopDir, "docs") Dim dir As New DirectoryInfo(dirName) For Each file As FileInfo In dir.GetFiles("*.doc") comboBox.Items.Add(file.FullName) Next
Reading Files in a Folder
Adam Smith MS
what does that mean
Ben Christian
Jeff Bevans
SabariRajan
Imports System.IO
Dim desktopDir As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
Dim dirName As String = Path.Combine(desktopDir, "docs")
Dim dir As New DirectoryInfo(dirName)
For Each file As FileInfo In dir.GetFiles("*.doc")
comboBox.Items.Add(file.FullName)
Next