How to filter search results
Ok so im using the following code to find subfolders in a folder:
Code:
Private Sub DirSearch(ByVal sDir As String)
Application.DoEvents()
For Each d As String In Directory.GetDirectories(sDir)
Console.WriteLine(d)
DirSearch(d)
ListBox1.Items.Add(d)
Timer1.Start()
Next
End Sub
I was just wondering how i would filter the search results to remove all folders containing the word itunes, windows ect. this is for my file scanner which i dont want to scan in places i know recent files won't be. Also i'm dealing with literally tens of thousands of folders so filtering out windows folders would reduce a lot of unnecessary scanning.
Thanks