Directory listing + multi pattern + acces denied
i have tried many samples on the net to list all files in system directory via (.net 2 window form).
does anyone knows a function which can Directory listing + multi pattern + hidden system files
I have found the solution at http://www.co开发者_开发百科deproject.com/KB/files/xdirectorycopy.aspx
No, there isn't one. You'll have to do recursive calls to Directory.GetFiles
and Directory.GetDirectories
. Or possibly EnumerateDirectories
and EnumerateFiles
.
See this article for details and sample code: How to recursively search directories by using Visual C#
精彩评论