By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,699 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,699 IT Pros & Developers. It's quick & easy.

Disk Serial Number

P: n/a
Using API: GetVolumeInformation to retrieve harddisk serial number works in
VB6
But in VB.NET it returns 0.
Please tell me how to do it in VB.NET
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Soren,

You mean this?

\\\Set a reference to system.managagemen
Dim disk As New Management.ManagementObject( _
"Win32_LogicalDisk.DeviceID=""C:""")
Dim diskProperty As Management.PropertyData
MessageBox.Show(disk.Properties("VolumeSerialNumbe r").Value.ToString)
///
I hope this helps a little bit?

Cor

"Soren Hyltoft" <sh@impuls-technic.dk>
Using API: GetVolumeInformation to retrieve harddisk serial number works
in
VB6
But in VB.NET it returns 0.
Please tell me how to do it in VB.NET

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.