Filtering on protected operating folders?
Code:
Dim MyRoot As New System.IO.DirectoryInfo("C:\")
For Each MyDirInfo As System.IO.DirectoryInfo In _
MyRoot.GetDirectories("*", IO.SearchOption.TopDirectoryOnly)
MessageBox.Show(MyDirInfo.FullName)
Next
I have a simple procedure looping thru files on a specific root/drive. I want to filter on system folders that are not accessable. i cant seem to find an attribute that relates to that?
Re: Filtering on protected operating folders?
Just handle the exception that gets thrown and move on.