Hi All,

I'm fairly new to .Net Framework, so if this has been answered before,
please redirect me...

One of the public methods in the Environment class is
'GetLogicalDrives', which returnes a String[]...

What methods/classes allow the programmer to querry the types of devides
returned in this array... For example, I need to know, if the device is
a 'removable' device (i.e. memory stick, CD-ROM, etc)... What class
method could be used to identify these devices (from a string no less)...

You help would be appreciated...
Thanks,

Peter Wilford

Re: Classes to identify device parameters? by Mattias

Mattias
Mon Jun 27 02:58:33 CDT 2005

Peter,

>What methods/classes allow the programmer to querry the types of devides
>returned in this array... For example, I need to know, if the device is
>a 'removable' device (i.e. memory stick, CD-ROM, etc)... What class
>method could be used to identify these devices (from a string no less)...

There's no such class in v1 of the framework. You could get the
information with the GetDriveType Win32 API or with WMI
(System.Management).



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.