[HELP] Searching Files
I try this:
But the problem is , In C:\ have some denied directories (Open as admin do not work), HOw can i make it ignore it, if is not allowed ? ( Or something)
Thanks.
Code:
Dim files As ReadOnlyCollection(Of String)
files = My.Computer.FileSystem.FindInFiles("C:\", TextBox1.Text, False, FileIO.SearchOption.SearchAllSubDirectories, "*.txt")
For Each FilexD As String In files
ListBox1.Items.Add(FilexD)
Next
Thanks.
