Enumerate all storage devices

  • Thread starter Thread starter Jon Slaughter
  • Start date Start date
J

Jon Slaughter

I'm trying to make a tree list of possible storage devices for a small app
but I have no idea how to get them. I want something very similar to windows
explorer's tree view. Do I have to manually work with each one(hard drives,
USB drives, networks, etc, special locations, etc..) or is there some way to
get all these possibilities enumerated for me?

Thanks,
Jon
 
Jon Slaughter said:
I'm trying to make a tree list of possible storage devices for a small app
but I have no idea how to get them. I want something very similar to
windows explorer's tree view. Do I have to manually work with each
one(hard drives, USB drives, networks, etc, special locations, etc..) or
is there some way to get all these possibilities enumerated for me?

Thanks,
Jon

It seems System.Enviroment.GetFolderPath does this?
 
Hello Jon,

use Environment.GetLogicalDrives and Environment.GetFolderPath methods

JS> I'm trying to make a tree list of possible storage devices for a
JS> small app but I have no idea how to get them. I want something very
JS> similar to windows explorer's tree view. Do I have to manually work
JS> with each one(hard drives, USB drives, networks, etc, special
JS> locations, etc..) or is there some way to get all these
JS> possibilities enumerated for me?
JS>
JS> Thanks,
JS> Jon
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Michael Nemtsev said:
Hello Jon,

use Environment.GetLogicalDrives and Environment.GetFolderPath methods

Thanks.

Do you also know how I get the icons used? Do I need to extract them
manually or is there some way to use what explorer uses?

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top