Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursive method
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00953166
Message ID:
00953188
Vues:
19
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform