Hard drive number

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey guys ...

how do i get the hard drive number

need code pleas
thanx in advance
 
* "=?Utf-8?B?V2lsbA==?= said:
how do i get the hard drive number ?

Add a reference to "System.Management.dll" and import the
'System.Management' namespace:

\\\
Dim disk As New ManagementObject( _
"Win32_LogicalDisk.DeviceID=""C:""" _
)
Dim diskPropertyA As PropertyData = _
disk.Properties("VolumeSerialNumber")
MsgBox(diskPropertyA.Value.ToString())
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Whole Numbers 4
BackColor 2
Diplay a label box 2
Key Pressed 3
Running exe 4
Print 1
How to subtract a number from a Mergefield? 0
What makes people want to buy this NetBook 2

Back
Top