I'm currently working on a project where I'd like to be able to identify drive volume information (dirve letter, volume name) based on the device interface type and model.
I'm using "Win32_LogicalDisk" to list volume information and "Win32_DiskDrive" to list the device information. My problem is I don't know how to link the two.
A sample from my current code for detecting the device ID is:
For Each DiskObj In DiskObjSet
If DiskObj.interfacetype = "USB" And DiskObj.Model = "HITACHI_ DK13FA-40 USB Device" Then
UsbDevice = DiskObj.Index
This effectively detects the device ID, but I haven't been able to find a way of lising volume info for the detected ID.
I'm relatively new to VB programming so maybe there's a simpler way of doing this. Any help would be appreciated.