[C#] WMI in regards to physical drives
*Windows Management Instrumentation
Im interested in retreiving information about my removable discs from the Win32_LogicalDisk and Win32_DiskDrive classes, in which the values from both classes are combined together for each disc. But the problem is, these two classes dont read the drives in the same order. For instance, Win32_LogicalDisk class reads basically all drives but Win32_DiskDrive class skips CD-ROM drives, so I cant program a basic loop where I can assume that each set of values, in that order given, are for that specific drive, say F: .
Whats the best way to tackle this? Thanks in advance.
*Windows Management Instrumentation
Im interested in retreiving information about my removable discs from the Win32_LogicalDisk and Win32_DiskDrive classes, in which the values from both classes are combined together for each disc. But the problem is, these two classes dont read the drives in the same order. For instance, Win32_LogicalDisk class reads basically all drives but Win32_DiskDrive class skips CD-ROM drives, so I cant program a basic loop where I can assume that each set of values, in that order given, are for that specific drive, say F: .
Whats the best way to tackle this? Thanks in advance.
Last edited by a moderator: