开发者

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#

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜