Click to See Complete Forum and Search --> : Retrieving the computers description
RudyL
Oct 30th, 2001, 08:59 AM
Does anyone know of a command the will allow me to retrieve the computers description? I know the "getcomputername" command will retrieve the name. Maybe there is something similar for the description.....
Thanks for the help,
R
Hack
Oct 30th, 2001, 09:03 AM
What do you mean by "description"?
RudyL
Oct 30th, 2001, 10:29 AM
In the network settings you give the pc a name and then a description. ie. Name = "Compag Peserio", Description = "Pentium 1.2Ghz" ...
Hack
Oct 30th, 2001, 11:27 AM
If you want to know the processor type, use this code:Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As SYSTEM_INFO)
Private Type SYSTEM_INFO
dwOemID As Long
dwPageSize As Long
lpMinimumApplicationAddress As Long
lpMaximumApplicationAddress As Long
dwActiveProcessorMask As Long
dwNumberOrfProcessors As Long
dwProcessorType As Long
dwAllocationGranularity As Long
dwReserved As Long
End Type
Dim InfoResult As SYSTEM_INFO
GetSystemInfo InfoResult
MsgBox "Your CPU type is " & InfoResult.dwProcessorType
MsgBox "You have " & InfoResult.dwNumberOrfProcessors & " processor(s)"
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.