Problem getting status of logical disks

  • Thread starter Thread starter techie
  • Start date Start date
T

techie

Hi,

I'm trying to get the status of the logical disks. I'm using the WMI
classes:

ManagementObjectSearcher deviceList = new
ManagementObjectSearcher("Select * from Win32_LogicalDisk");

The 'Status' property is not available. Is there any other way of
getting the status? Would I have to query Win32_PnPEntity?
 
techie said:
I'm trying to get the status of the logical disks. I'm using the WMI
classes:

ManagementObjectSearcher deviceList = new
ManagementObjectSearcher("Select * from Win32_LogicalDisk");

The 'Status' property is not available. Is there any other way of
getting the status?

What do you mean by "status"? Are you referring to whether the disk is
ready? You could get this information through the IsReady property of the
DriveInfo class (in System.IO).
 
Back
Top