Real HDD serial number
-
Hi! I'm trying to find a way of retrieving the serial number of all the hard drives in a PC, not the Volume information, but the real hard drive, manufacturer serial number! I know i must use a virtual device driver file, but i don0y actually know how to do it! Where can i find a sample code, or just a good article on this subject? Thank you for your time
-
Hi! I'm trying to find a way of retrieving the serial number of all the hard drives in a PC, not the Volume information, but the real hard drive, manufacturer serial number! I know i must use a virtual device driver file, but i don0y actually know how to do it! Where can i find a sample code, or just a good article on this subject? Thank you for your time
Are you using VB6 or VB.NET ? For VB6, I would do this : In the Menu Project->References : Select 'Microsoft Scripting Runtime' Then in your code :
Dim fso As FileSystemObject Set fso = New FileSystemObject MsgBox fso.Drives("c").SerialNumber Set fso = Nothing
I'm not sure if this is exactly what you need. Jerome -
Are you using VB6 or VB.NET ? For VB6, I would do this : In the Menu Project->References : Select 'Microsoft Scripting Runtime' Then in your code :
Dim fso As FileSystemObject Set fso = New FileSystemObject MsgBox fso.Drives("c").SerialNumber Set fso = Nothing
I'm not sure if this is exactly what you need. JeromeThank you Jerome I'm using VB6, i did as you told me, and i got a number, like : 134763457, maybe this number is related to the partition serial number, because, once i have 2 partitions in this hard drive, for "e" i got another number. What i needed is the vendors serial number that can be read on the hard drive. Do you know a way to do this? Thank you once more
-
Thank you Jerome I'm using VB6, i did as you told me, and i got a number, like : 134763457, maybe this number is related to the partition serial number, because, once i have 2 partitions in this hard drive, for "e" i got another number. What i needed is the vendors serial number that can be read on the hard drive. Do you know a way to do this? Thank you once more
I understand now exactly what you want. You're right, the number you get is the Serial number of the volume. I'm afraid I won't be able to help you on how to get the manufacturer serial number, I've got no idea how to get it... Sorry, Jerome
-
I understand now exactly what you want. You're right, the number you get is the Serial number of the volume. I'm afraid I won't be able to help you on how to get the manufacturer serial number, I've got no idea how to get it... Sorry, Jerome