C#C
C#4y ago
euskater

System.UnauthorizedAccessException [Answered]

Hei I need help with this line

 foreach (string valid_path in Directory.EnumerateDirectories(dir, validFolderName, SearchOption.AllDirectories))


I want to search for a specific Folder in my Drive "C:\"

But it always give me access denie for C:$Recycle.Bin. I want to skip it but it doesnt work even with try cath.

Thanks for any help
Was this page helpful?