[C#] WMI in regards to physical drives
*Windows Management Instrumentation
I'm 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 don't 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 can't program a basic loop where I can assume that each set of values, in that order given, are for that specific drive, say F: .
What's the best way to tackle this? Thanks in advance.
*Windows Management Instrumentation
I'm 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 don't 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 can't program a basic loop where I can assume that each set of values, in that order given, are for that specific drive, say F: .
What's the best way to tackle this? Thanks in advance.
Last edited: