Results 1 to 4 of 4

Thread: Drive vol serial no

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Drive vol serial no

    Hi

    I retrive the vol serial no fo a drive in vb.net using dos command
    can it possible to known the vol serial no wothout running the dos commnd
    from the vb.net. it yes how?

    thanks

    asm

  2. #2
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: Drive vol serial no

    I am not useing .Net, this is how we use in VB6...Im sorry, if this doesnt help you...
    VB Code:
    1. Dim FSO As filesystemobject
    2.     Set FSO = New filesystemobject
    3.     Dim myDrive As Drive
    4.     Set myDrive = FSO.GetDrive("C")
    5.     MsgBox myDrive.SerialNumber
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  3. #3
    Frenzied Member stimbo's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,739

    Re: Drive vol serial no

    Getting hard drive info


    Or Here

    Or as the last post in the last URL suggests - download the 101 examples that includes a fully working example
    Stim

    Free VB.NET Book Chapter
    Visual Basic 2005 Cookbook Sample Chapter

  4. #4
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Drive vol serial no

    You can do it using WMI. Check out my WMI codebank submission in my sig for more info. ..

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