开发者

Get a Unique ID for a Hard disk attached to a PC in .net

开发者 https://www.devze.com 2022-12-19 04:51 出处:网络
As the question states I need some way of getting a unique ID for each of the drives attached to my PC.

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

精彩评论

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

关注公众号