General discussion

Locked

HD Serial Number

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

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

HD Serial Number

by Captain Krunch In reply to HD Serial Number

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.

Collapse -

HD Serial Number

by adel_ibrahim In reply to HD Serial Number

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

Collapse -

HD Serial Number

by Mark_T In reply to HD Serial Number

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

Collapse -

HD Serial Number

by adel_ibrahim In reply to HD Serial Number

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

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums