Hi all am working with Directories and Files Counting Software..
Here, When I get or search Files from C:\
or D:\
it throws UnAuthorizedAccessException
I want to Enumerate Files Ignoring the file/Directory which is Inaccessible
How to ?? C# Visual Studio 2008 Exactly .NET Framework 3.5 only.
My code
var files = FastDirectoryEnumerator.EnumerateFiles(path, "*.reg.zip",
SearchOption.AllDirectories)
.GroupBy(f => f.Name).Select(g => g.First());
Here Am Taking files which ends with .reg.zip
I want to search it on my Whole Computer.. But the Exception..
VS 2008 Default User.. I Tried app.manifest
with
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
but even though Exception.. while Searching in SystemVolumeInformation
Directory..