Directories and Files

Make a function which loops through all folders in a given directory and also all files. When it encounters a folder, make it call itself with that folder as well as performing any other actions you need.

Im pretty sure theres an example in the vb.net code examples site I posted in the knowledge base.
 
One thing to keep in mind though is that if you have a very large
drive, something like this will take absolutely ages to run start to
finish. Unless you are making some sort of virus scanner or
something that needs to look at all the files in one go, avoid this.

If you are making some kind of explorer, get all the folders in
C drives root to start off. Then when the user opens another folder,
get the contents of that folder, etc etc.
 
Back
Top