Discussion Locked

HD Serial Number

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How can i get the HD Serial Number In Access Form
regards
adel

4 replies

by captain krunch

Go to the web site for whatever brand of HD you are using and download there tool kit. this will pull off the serial number so you can key it into the Access database.

by adel_ibrahim

Thanks,My question mean that when somebody type in the dos command(Vol) will get the information like(Volium serial Numbe is 265B-12DB).
How I can Get this information in the access form by VB Code

by mark_t

Create a new vb project.
Add in a reference to Microsoft WMI Scripting V1.1 tlb. (downloadable from Microsoft, if you dont have it)

Use the following VB code:

Set objinst = GetObject("WinMgmts::Win32_LogicalDisk='C:'")

MsgBox (GetObject("WinMgmts::Win32_LogicalDisk='C:'").VolumeSerialNumber)

You should be able to do something similar to this in Access as its just VB script

by adel_ibrahim

many thanks for reply.
When I runing This code in MS VB6 Or Msaccess I got the following massage:
Run-Time Error'-2147217375(80041021)
Automation Error.
also Note that I have Added in a reference to Microsoft WMI Scripting V1.2 library.
best regards

This discussion is closed to new replies.