Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive method
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00953166
Message ID:
00953188
Views:
18
Craig,
Thanks for the link that is exactly what I wanted to do.
After running the code provided in the link provided by you I have a couple of comments: It is very slow (slower than my method but my method doesn't work so I guess it doesn't count). Lets say I start searching from the root of C, I will not find any files located on the root directory itself (well that is easily fixed by moving the inner foreach loop outside the outer foreach loop)

Wow also moving the inner foreach loop outside the outer foreach loop helped tremendously with the speed. I can not at the moment see any negative effects doing this.

Einar

Einar

>Hi Einar,
>
>There is a good article on the Microsoft support site about "How To Recursively Search Directories by Using C# .NET" that might help:
>
>http://support.microsoft.com/default.aspx?scid=kb;en-us;303974
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform