Groups | Blog | Home
all groups > dotnet windows forms > june 2007 >

dotnet windows forms : working with Directory class


AVL
6/28/2007 5:08:03 AM
hi,
i've used Directory.GetFiles(path, "*.*", SearchOption.AllDirectories)
method to
return the files in a given path....

but i've a small concern here...whenever I give path like "d:\", i'm getting
an unauthorizedaccess exception...this is because i'm not able to read certain
directories like 'system volume information'...etc..

Jeff Gaines
6/28/2007 6:43:36 AM
On 28/06/2007 in message
[quoted text, click to view]

It.s most likely System Volume Information. I use a try/catch to get round
it.

--
AddThis Social Bookmark Button