Recursive directory search
-
I'm pleased to hear you got your entire app working satisfactorily now. Enjoy !
Luc Pattyn
tutor 06 - Recursive search of directories for download: http://www.mediafire.com/?7z5yzqgjytm[^] Recently while writing my new MP3 player I wanted to do a recursive search of a drive to find all the MP3 files. I downloaded the code from MSN and after thinking I had a working program I discovered that the file count was incorrect. At that point I suspected that I was running to a limitation of a memory array or perhaps the list Box. With the help "Code Project" friends we solved the problem. This code was originally was downloaded from MSDN and the code did not read properly. I want to thank Luc Pattyn for his rewrite, which works properly. I have tested this code on my .mp3 collection and it puts 17,223 in the listbBox. This is the exact number of files on the drive. At first I thought the problem had to do with limitations in the number of lines in an array or perhaps a limitation of the listBox. To test this I created a program to write 80,000 lines of 256 characters to an array and then populate the listBox from the array. There must be an eventual limitation but I did not find it. I can't visualize a need beyond this test for my simple needs. -- modified at 8:06 Monday 12th February, 2007