How to distinguish flash drives?

Good afternoon.

I need help. I want to make a program in Delphi and one of the functions of this program: distinguish between flash drives. For example: I connect a new flash drive to the computer, my program also detects it, I give this flash drive some name ONLY in my program. Then I can change something: the name of the USB flash drive in Windows, the contents on this flash drive, format it. But after these steps, my program should detect this flash drive and show me the name that I gave it.

Maybe there is some kind of serial number unique to any device / false disk? Or something like that.

We will be very grateful for your help =)

+4
source share
1 answer

Look at here:

Direct data exchange with USB device with VID and PID in Delphi

You can read the vendor id and product id for the thumb. This, at the very least, will give you a brand and make from a finger. I don’t think it will be unique to every thumb of the same type.

It looks like they might also be in your lane:

How to find the unique serial number of a flash device?

How to get the serial number of the manufacturer of the USB drive?

+11
source

All Articles