HD Serial Number
How can i get the HD Serial Number In Access Form
regards
adel
Web Development
How can i get the HD Serial Number In Access Form
regards
adel
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.
Sort by Trending