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).
 

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

Similar Threads


Back
Top