Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the serial number of the drive
Message
 
À
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:
01482035
Vues:
51
>>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

If by "second method " you mean where you use Scripting.FileSystemObject, then why do you think that is for hard disk serial number?
As far as I understand, FileSystemObject based on logical disk.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform