Join
the community
Sign-up
Ask a question »

System volume information-access denied C#

April 2013


System volume information-access denied C#



Issue


I'm trying to make a program to list all the subdirectories of a root directory. I've used C:

The access to the folder "System Volume Information 'is denied.
How to ignore this exception?

Solution


try 
{ 
//code allowing file browsing
} 
catch(UnauthorizedAccessException) 
{ 
//ignore exception 
}

See also

Knowledge communities.

Published by aakai1056
This document entitled « System volume information-access denied C# » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.
Receive our newsletter

health.kioskea.net

VB/VBA - Convert Roman number to Arabic
CSS - Remove space between images