V
VB Novice Hendri
Guest
Hi There.
I use this code to give me a list of all MS Word Documents in a Folder.
I need some code that will not only give me the names in that Folder but the Names in all SubFolders aswell.
Can you please Help.
RecipeFolder = "M:\My Documents\My Resepte\Wenke & Boererate vir in en om die Huis\Huishoudelike Wenke"
Sub FillRecipeListBox()
Me.RecipeListBox.Items.Clear()
Dim Files() As String = Directory.GetFiles(RecipeFolder)
For Each file As String In Files
RecipeListBox.Items.Add(Path.GetFileNameWithoutExtension(file))
Next
End Sub
Continue reading...
I use this code to give me a list of all MS Word Documents in a Folder.
I need some code that will not only give me the names in that Folder but the Names in all SubFolders aswell.
Can you please Help.
RecipeFolder = "M:\My Documents\My Resepte\Wenke & Boererate vir in en om die Huis\Huishoudelike Wenke"
Sub FillRecipeListBox()
Me.RecipeListBox.Items.Clear()
Dim Files() As String = Directory.GetFiles(RecipeFolder)
For Each file As String In Files
RecipeListBox.Items.Add(Path.GetFileNameWithoutExtension(file))
Next
End Sub
Continue reading...