开发者

Directory listing + multi pattern + acces denied

开发者 https://www.devze.com 2023-03-28 18:15 出处:网络
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 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

精彩评论

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