Results 1 to 8 of 8

Thread: Old story of HDD Serial, New Issues..[Long Live WMI]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474

    Old story of HDD Serial, New Issues..[Long Live WMI]

    In a thread there was a discussion about how to get the HDD serial number. There, an API was suggested that returned the VOLUME serial number. Today I came across FileSystemObject, that by using that you can simply get the VOLUME serial number:

    After adding a reference to Microsoft Scripting Runtime COM component you can easily do that by:
    VB Code:
    1. Imports Scripting
    2.  
    3. '
    4. '
    5. Dim fso As New FileSystemObject()
    6. MessageBox.Show(fso.GetDrive("C").SerialNumber.ToString)

    As you see this method and that API call both return the Volume Serial number.
    I like to know is there a way to read the hard-coded manufacturer's hard drive serial number? Just curious to know
    Last edited by Lunatic3; Apr 1st, 2003 at 01:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width