Get the unique identifier of the hard drive connected to the PC in .net

As stated in the question, I need some way to get a unique identifier for each of the drives connected to my PC.

The reason for this is that if I store the file location in the database, and I want to get it at a later stage, I do not always get the file, because the drive letters change depending on the number of connected drives.

+3
source share
2 answers
+4
source

Each hard drive / storage device has a serial number.

: USB- #

0

Source: https://habr.com/ru/post/1731172/


All Articles