System.UnauthorizedAccessException [Answered]
Hei I need help with this line
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
9 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
oh sorry
I thought you are part of the team
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ok I will try
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ok
I will remove now
The admin thing is now working
Well I found this on the internet (Stuckoverflow):
Here's Best and Fastest Way To List All Directories and Subdirectories by Skipping System.UnauthorizedAccessException
A simple recursive method with action to retrieve at realtime, preparing a list and returning to parent takes a lot of time, this call back function helps a lot to retrieve at realtime instead of preparing and returning back
Usase
source: https://stackoverflow.com/a/73528233
Stack Overflow
how to list all sub directories in a directory
I'm working on a project and I need to list all sub directories in a directory for example how could I list all the sub directories in c:\
this helped me and it works now thank you
!close
✅ This post has been marked as answered!