- Free Disk Formatter
- Fat32 Disk Formatter
- Windows Usb Disk Formatter
- Martik Usb Disk Formatter
- Usb Formatter Windows
How can I retrieve the manufacturer serial number of an USB flash drive in Delphi ?
Free Disk Formatter
FAT32 Format USB/SD Card - MiniTool Partition Wizard. In addition to using MiniTool Partition Wizard to convert NTFS to FAT32, this professional partition manager can also be as a dedicated FAT32 formatter to format a disk partition to FAT32 effectively in Windows 10/8/7. Martik USB Disk Formatter 1.1 is available to all software users as a free download (Freeware). Compatibility with this software may vary, but will generally run fine under Microsoft Windows 10, 8, 8.1, 7, Vista and XP on either a 32-bit or 64-bit setup.
I have tried this:
But it doesn't return correct result!TLama
opc0de, according to your comments i will give you a sample using the WMI.
Fat32 Disk Formatter
First, the code which you posted (using the
GetVolumeInformation function) return the serial number assigned by windows when you format a disk.
The good news are which exist two wmi classes wich exposes a property called
SerialNumber which store
the Number allocated by the manufacturer to identify the physical media. these classes are
Now the bad news, unfortunately this classes is not associated directly with the letter (C,D,E,F...) of the logical disk, because that you must call to another wmi classes to find the link between the logical driver letter and the Physical drive.
so you must find this link previous to obtain the serial number. the sequence to find this association is like this.
this is the code to obtain the serial number of a usb using the
By the way some time ago i wrote an application called WMI Delphi Code Creator which can help you to generate delphi code to access the system info using the WMI.
Some drivers of the USB disks does not expose the manufacturer serial number on the Win32_DiskDrive.SerialNumber property, so on this cases you can extract the serial number from the
Windows Usb Disk Formatter
Check this sample code.RRUZRRUZ
You can try the component TDiskInfo from GLib to Get the SerialNumber.
It not use WMI, but in some system (disk types) not retrieve the number.
Try it. It's free.