Shira
Shira

Reputation: 785

Real name (Full name) of USB device?

DriveInfo[] mydrives = DriveInfo.GetDrives();

 if (mydrive.DriveType == DriveType.Removable)  

in this way i get all the devices that connected to my machine and their name : mydrive.Name
can i know which kind of device is each one of them?- like DOK , external HDD and so on..... or to get their real name like- MyBook (the name of the external HDD)- it will also help me a lot.

Upvotes: 0

Views: 1363

Answers (1)

LaGrandMere
LaGrandMere

Reputation: 10379

Seen here on MSDN:

You can get the Volume Label from the DriveInfo : Drive_Info.VolumeLabel

Another useful link about all information available from DriveInfo.

Upvotes: 1

Related Questions