HD drives serial number & HD drives volume serial number
Hi
I am still a problem in HD drives serial number. I need to know what is difference between HD drives serial number and HD drives volume serial number. which one is unique number.
by the way, you can see the HD drives volume serial number in DOS state(i.e. C:\Dir..), but how to find HD drives serial number. Can anybody tell me ? Thanks again
The drive serial number is the manufacturer hard coded serial number. The volume serial number is the user supplied alpha numeric string.
I have encloses a sample program that will display bunches of informatio about a hard drive.
Just unzip the attached and run the project to see the difference. Debug the code to see how the results are acheived.
The GetVolumeInformation API return the Volume Serial Number, the same you see when you do "dir c:\" and the same returned by the FileSystemObject. I don't know much if there is any other Serial Number you can read, but a quick search on planetsourcecode.com do not give any other method
I get HD drives serial number (1730166591) in D directory using John code, but I find HD drives volume serial number(98DFC0C1) in directory using DOS operation(c:/dir..).
Can anybody tell me which number is always not changed in computer system and how to find HD drives serial number (1730166591) in DOS or Windows operation( don't use VB code)
thank in advance
Last edited by Cphilip; November 27th, 2002 at 01:38 PM.
At first, you must convert the resulting value to Hexadecimal (HEX$ funcion), but in your case, it give : 67203F3F, I have try it on my HardDrive and this is always the same number...
Hi JeffB
You are right. if you use Hex$ fuction, the HD drives serial number look like the HD drives volume serial number.
you give me the good answer and make me understand.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.