|
-
Oct 30th, 2001, 09:59 AM
#1
Thread Starter
Frenzied Member
Retrieving the computers description
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
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Oct 30th, 2001, 10:03 AM
#2
What do you mean by "description"?
-
Oct 30th, 2001, 11:29 AM
#3
Thread Starter
Frenzied Member
In the network settings you give the pc a name and then a description. ie. Name = "Compag Peserio", Description = "Pentium 1.2Ghz" ...
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Oct 30th, 2001, 12:27 PM
#4
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)"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|