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
Printable View
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
What do you mean by "description"?
In the network settings you give the pc a name and then a description. ie. Name = "Compag Peserio", Description = "Pentium 1.2Ghz" ...
If you want to know the processor type, use this code:VB 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)"