I'm trying to get device information about particular local hard drives. I've been able to create a few value returning methods using the DriveInfo class like this:
public string getDriveFormat(string driveName)
{
foreach (DriveInfo driveInfo in DriveInfo.GetDrives())
{
if (driveInfo.IsReady && driveInfo.Name == driveName)
{
return driveInfo.DriveFormat;
}
}
return "";
}
Samuel Fernandes
16-Oct-2013Note: - Add reference of System.management
Not sure if you need to consider mounted drives as well: