Traverse a Hard Disk

  • Thread starter Thread starter John Marshall
  • Start date Start date
J

John Marshall

I have a two checked listboxes, I would like to go through a harddisk
using the drive and directory enumerations. But I would like to keep the
program from going into the system info directory. Then put this in the
checked list and when the user clicks a directory, the program put the
filenames and extension in a ini file like this:

file1="filename.ext","dir"

How is this done?

John
 
I have a two checked listboxes, I would like to go through a harddisk
using the drive and directory enumerations.

The System.IO.Directory class should allow you to do this (see the
GetDirectories and GetFiles methods).
But I would like to keep the
program from going into the system info directory.

The "System Volume Information" directory? I don't think any user (even
an Administrator) can get into that directory. Just skip it if it's
name comes up.
 
Back
Top