467,910 Members | 1,644 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

Enumerate all storage devices

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
Oct 12 '06 #1
  • viewed: 4264
Share:
5 Replies

"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:12*************@corp.supernews.com...
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?
Oct 12 '06 #2
Hello Jon,

use Environment.GetLogicalDrives and Environment.GetFolderPath methods

JSI'm trying to make a tree list of possible storage devices for a
JSsmall app but I have no idea how to get them. I want something very
JSsimilar to windows explorer's tree view. Do I have to manually work
JSwith each one(hard drives, USB drives, networks, etc, special
JSlocations, etc..) or is there some way to get all these
JSpossibilities enumerated for me?
JS>
JSThanks,
JSJon
---
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 Nietzsche
Oct 12 '06 #3

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:17***************************@msnews.microsof t.com...
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
Oct 12 '06 #4
Use SHGetFileInfo WinAPI for this
Sample is there
http://vbaccelerator.com/home/NET/Co...ll/article.asp

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


"Jon Slaughter" wrote:
>
"Michael Nemtsev" <ne*****@msn.comwrote in message
news:17***************************@msnews.microsof t.com...
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
Oct 12 '06 #5

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:67**********************************@microsof t.com...
Use SHGetFileInfo WinAPI for this
Sample is there
http://vbaccelerator.com/home/NET/Co...ll/article.asp
Ok, Thanks again.

Jon
Oct 12 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Kevin Altis | last post: by
reply views Thread by Buck Woody | last post: by
1 post views Thread by John Rauhe | last post: by
12 posts views Thread by Jeremy | last post: by
21 posts views Thread by James Stroud | last post: by
reply views Thread by zhensoftware | last post: by
10 posts views Thread by Redhairs | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.