Quote Originally Posted by Mickroy View Post
You can use the static GetFiles method of the Directory class & specify the last parameter as "SearchOption.AllDirectories". This will search recursively.

Code:
Dim myDirectories As String() = Directory.GetFiles("C:\", "*.*", SearchOption.AllDirectories)
That code will throw an exception when it inevitably encounters an inaccessible folder. If there's any chance of finding an inaccessible folder along the way then you must do the recursion yourself, so that you can handle the exception and continue.