Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the serial number of the drive
Message
De
20/09/2010 13:06:00
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01481909
Message ID:
01482029
Vues:
45
>If I understand you correctly, you want to get hard drive serial number, not volume serial number. But both methods that you are using, they return volume serial number. Probably you need to use Win32_PhysicalMedia objects instead of Win32_LogicalDisk.
>
>This may help:
>http://www.codeproject.com/KB/cs/hard_disk_serialno.aspx

The second method returns the drive serial number. It is just that I was storing it into cVolumeSerialNumber. I have adjusted the method since then. That one is for the drive serial number.

Thanks for the reference
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform