By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,594 Members | 3,459 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,594 IT Pros & Developers. It's quick & easy.

Retreiving all folders and all files in those folders

bplacker
100+
P: 121
I am trying to use the FolderBrowserDialog to select a folder... and from there, programatically find each folder, go into that folder, and pull out all filenames within the folder. Does that make any sense?

If someone were to select a folder such as C:\MyMusic.. I want to pull out all files within all folders under MyMusic.

I can figure out the recursive or iterative code to go into each folder, but I can't seem to figure out how to do anything other then get the path which the user selected from the FolderBrowserDialog. Is there a way to use this with the OpenFileDialog, or some other control? Any Ideas? Thanks guys,

Brian
Sep 20 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.