LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get a usb drive's physical serial number?

Hello.
 
Does any one know of a way to get a usb drive's physical serial number?  (ie compact flash inserted into a usb reader).  I've done a comprehensive google search for a whole day and found nothing.  I'm not talking about the volume system id/sn that gets changed everytime you reformat a drive (the one you see using fsutil or vol command).  I'm talking about the serial number embedded into a compact flash that is unique even if you format the flash.
 
I've also seen some examples from google that gets the serial number from a CF in a WindowsCE environment.  I've also used a DOS application called diskid32.exe but it only seems to get the serial number from my internal hard drives and not the compact flash inserted into the usb reader (shows up as a "DeviceIOControl IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER error = The request is not supported for this device" error)
 
Is this even possible in LabView with Windows XP?
 
Any help is very much appreciated. 
 
Thanks!
0 Kudos
Message 1 of 4
(9,448 Views)

Hi Unclebump.

Thanks for the reply.  Unfortunately though, I've also searched the developer zone and have already checked out the above thread.  The VB script doesn't seem to get my usb drive info, nor the correct drive info on my internal hard drive.

Thanks for the help though!

0 Kudos
Message 3 of 4
(9,436 Views)

Manny wrote:
Hello.
 
Does any one know of a way to get a usb drive's physical serial number?  (ie compact flash inserted into a usb reader).  I've done a comprehensive google search for a whole day and found nothing.  I'm not talking about the volume system id/sn that gets changed everytime you reformat a drive (the one you see using fsutil or vol command).  I'm talking about the serial number embedded into a compact flash that is unique even if you format the flash.
 
I've also seen some examples from google that gets the serial number from a CF in a WindowsCE environment.  I've also used a DOS application called diskid32.exe but it only seems to get the serial number from my internal hard drives and not the compact flash inserted into the usb reader (shows up as a "DeviceIOControl IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER error = The request is not supported for this device" error)
 
Is this even possible in LabView with Windows XP?
 
Any help is very much appreciated. 
 
Thanks!

If this thread
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(9,413 Views)