开发者

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#

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜