Link to home
Start Free TrialLog in
Avatar of SRIVB
SRIVB

asked on

finding Harddisk's serial number


How to find the Harddisk's serial number through my program in VB.
ASKER CERTIFIED SOLUTION
Avatar of Ruchi
Ruchi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ggilman
ggilman

Tried Ruchi's answer because I was curious too and works well. Only comment I have is that if you want to compare it to what you get at the command prompt by typing "dir", use the hex function:

Call MsgBox(Hex(GetSerialNumber("C:\")))
Hello where are you, SRIVB?
SRIVB, where are you?
srivb, any news here?
Avatar of SRIVB

ASKER

Sorry for the delay..

I worked out your answer, but it only gives the volume serial number.  But I want to find the physical id of the hard disk which was created by the manufacturer of the disk.