* "=?Utf-8?B?V2lsbA==?=" <an*******@discussions.microsoft.com> scripsit:
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())
///
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>