VB.Net Directory.GetFiles stops on denied access
Posted on 2013-06-16
Hi Experts. I am trying to get an array of all files in a directory with Directory.GetFiles
When the code encounters denied access on a folder it cannot continue.
For Each currfile In Directory.GetFiles(CurrentPath, "*.*", SearchOption.AllDirectories)
I know that there is no way for it to continue, but is there a way of adjusting the security requirements, or any way to continue?
Thanks for the help