Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the serial number of the drive
Message
 
To
20/09/2010 13:06:00
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01481909
Message ID:
01482035
Views:
50
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform