R rsine Jan 26, 2005 #1 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.
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.
H Herfried K. Wagner [MVP] Jan 26, 2005 #2 rsine said: I need to know all the directories that exist within a given location. Click to expand... '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>
rsine said: I need to know all the directories that exist within a given location. Click to expand... '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>