I've already tried System.IO.DriveType. But it only provides to me with the information of whether it's a removable drive such as floppy disc or a USB flash drive. And a USB external hard drive will be recognized as a local non-removable drive in this case.
Furthermore, since there are more than one kinds of external hard drive, for example, USB and IEEE 1394. It's really hard to figure it out from ports.
Any information will开发者_高级运维 be appreciated.
Im afraid this is not possible from a "high" level such as .net. For windows it is also transparant.
You're best try will be to figure out which system resources are in use and by what devices. This way you can see for example that some usb port is in use by some harddrive.
精彩评论