469,649 Members | 1,281 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,649 developers. It's quick & easy.

getting sub-folders and their sub-folders and so on

Does anyone know an easy way to get all of the folders and their sub-folders
and their sub-folders and so on? I need to get all of the folders and their
paths from an inputted parent folder textbox. I need to put this into a
string array variable like:
c:
c:\windows
c:\test
c:\windows\1
c:\windows\1\a
c:\test\6
The problem is I am going to be using this tool on different folder
structures and don't know how deep the folders are going to be and need this
to dynamically loop until it picks up all the sub-folders.

Thanks for your help...........Jason
Aug 27 '05 #1
1 1341
Hi,

There is no inbuilt way to do this. Check out these:

http://www.stillhq.com/dotnet/000003.html

"Recursive Listing of Directories" in
http://www.aspheute.com/english/20000804.asp

"Jason Steeves" <Ja**********@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
Does anyone know an easy way to get all of the folders and their sub-folders
and their sub-folders and so on? I need to get all of the folders and their
paths from an inputted parent folder textbox. I need to put this into a
string array variable like:
c:
c:\windows
c:\test
c:\windows\1
c:\windows\1\a
c:\test\6
The problem is I am going to be using this tool on different folder
structures and don't know how deep the folders are going to be and need this
to dynamically loop until it picks up all the sub-folders.

Thanks for your help...........Jason
Aug 28 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Francis Bell | last post: by
reply views Thread by MSK | last post: by
4 posts views Thread by R.Manikandan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.