开发者

How to recognize external hard drive from all local drives in .NET Framework?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜