Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Recursive directory search

Recursive directory search

Scheduled Pinned Locked Moved C#
comdata-structurestestingbeta-testingquestion
21 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Luc Pattyn

    I'm pleased to hear you got your entire app working satisfactorily now. Enjoy !

    Luc Pattyn

    E Offline
    E Offline
    electriac
    wrote on last edited by
    #21

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups