Hi.
First, sorry on my weak English to all.
Qusetion:
How to read (in VB) Manufacturer serial number of Hard disk drive?
Not volume/serial number of C:, D:, etc. partitons.
For reading volume/serial number of hard disk C: etc, You can use Microsoft Scripting Runtime (in VB):
Dim ff As New Scripting.FileS ystemObject
Dim drv As Drive
Set drv = ff.GetDrive("C" )
SerialNumber = drv.SerialNumbe r
MsgBox "Serial/Volume number of C: is " + Trim(Str(Serial Number))
But, I need manufacturer serial number of hard disk drive, because, after formatting hard disk You'll get another volume/serial number, and that is very bad if my program should check that parameter, if he can't recognize that this HDD is the same one but only formatted (and after formatting there is set another volume/serial number).
How I see, many people swap meaning of volume and serial number of some drive.
Thx to all.
First, sorry on my weak English to all.
Qusetion:
How to read (in VB) Manufacturer serial number of Hard disk drive?
Not volume/serial number of C:, D:, etc. partitons.
For reading volume/serial number of hard disk C: etc, You can use Microsoft Scripting Runtime (in VB):
Dim ff As New Scripting.FileS ystemObject
Dim drv As Drive
Set drv = ff.GetDrive("C" )
SerialNumber = drv.SerialNumbe r
MsgBox "Serial/Volume number of C: is " + Trim(Str(Serial Number))
But, I need manufacturer serial number of hard disk drive, because, after formatting hard disk You'll get another volume/serial number, and that is very bad if my program should check that parameter, if he can't recognize that this HDD is the same one but only formatted (and after formatting there is set another volume/serial number).
How I see, many people swap meaning of volume and serial number of some drive.
Thx to all.
Comment