Get a Unique ID for a Hard disk attached to a PC in .net
As the question states I need some way of getting a unique ID for each of the drives attached to my PC.
The reason behind this is that if i store the location of a file in a DB and I want to retrieve it at a later stage I wo开发者_开发百科nt always get the file since the drive letters change depending on the number of drives plugged in.
Each harddisk/storage device has a serial number.
You need to query that value: Read USB Device Serial number in C#
精彩评论