johnnyex
asked on
pendrive usb fl hardware more info
Hi Experts,
Can you help?
I'm not sure about those:
1 - I guess simpler.
Need Delphi solution to know Device usb memory stick space left free total in bytes-hardware (Not Volume which is logical value dependable on formatting etc)
2 - Not sure
Wonder also if that is possible to check s/n number for usb dongle memory ( pendrive) with Delphi simply which will work on all Windows OS
Use new XE Delphi.
Can you help?
I'm not sure about those:
1 - I guess simpler.
Need Delphi solution to know Device usb memory stick space left free total in bytes-hardware (Not Volume which is logical value dependable on formatting etc)
2 - Not sure
Wonder also if that is possible to check s/n number for usb dongle memory ( pendrive) with Delphi simply which will work on all Windows OS
Use new XE Delphi.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As you said - you can use hybrid method, bu I think that is second (on update) method better.
//note if you have multiple volumes on usb then your serial is: <serial>/<index of partition>
//note if you have multiple volumes on usb then your serial is: <serial>/<index of partition>
ASKER
here we can see:
https://www.experts-exchange.com/questions/28140731/USB-Flash-Drive-Serial-Numbers.html?anchorAnswerId=39203803#a39203803
There we can see two methods:
http://stackoverflow.com/questions/4292395/how-to-get-manufacturer-serial-number-of-an-usb-flash-drive
Where author says: "UPDATE
Some drivers of the USB disks does not expose the manufacturer serial number on the Win32_DiskDrive.SerialNumb
So which one is the best method which will work on all drives or maybe use two hybrid if one fail?
Would be good to have one solid solution which will just work is this from first link I posted or second method from stackoverflow link?