Uranium-235
Member
- Joined
- May 23, 2022
- Messages
- 5
- Programming Experience
- 1-3
So I need to see if a specific disk in USB removable (flash drive) or USB removable hard disk
DiskInfo provides this, but the disk type for a removable hard drive is the same as fixed hard disk
So I started delving into querying WMI. Win32_DiskDrive does separate them, but has no information for the drive letter. Win32_LogicalDisk does, but I see no common entries that can query LogicalDisk from DiskDrive, DiskVolume or DiskPartition. Did a lot of google searching and going through the query returns that are possible with each one. Is there a way to do this?
DiskInfo provides this, but the disk type for a removable hard drive is the same as fixed hard disk
So I started delving into querying WMI. Win32_DiskDrive does separate them, but has no information for the drive letter. Win32_LogicalDisk does, but I see no common entries that can query LogicalDisk from DiskDrive, DiskVolume or DiskPartition. Did a lot of google searching and going through the query returns that are possible with each one. Is there a way to do this?