Connecting Tech Pros Worldwide Forums | Help | Site Map

Getting all directories

rsine
Guest
 
Posts: n/a
#1: Nov 21 '05
I need to know all the directories that exist within a given location.
Is there a way to get such a listing? Any help is appreciated.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#2: Nov 21 '05

re: Getting all directories


"rsine" <anonymous@devdex.com> schrieb:[color=blue]
>I need to know all the directories that exist within a given location.[/color]

'System.IO.Directory.GetDirectories'. If you want to get nested directories
too, you may want to recursively enumerate the directories.

FileSystemEnumerator
<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/FileSystemEnumerator.zip>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Closed Thread