Results 1 to 4 of 4

Thread: Retrieving the computers description

  1. #1

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519

    Question 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".

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    What do you mean by "description"?

  3. #3

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    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".

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    If you want to know the processor type, use this code:
    VB Code:
    1. Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As SYSTEM_INFO)
    2. Private Type SYSTEM_INFO
    3.         dwOemID As Long
    4.         dwPageSize As Long
    5.         lpMinimumApplicationAddress As Long
    6.         lpMaximumApplicationAddress As Long
    7.         dwActiveProcessorMask As Long
    8.         dwNumberOrfProcessors As Long
    9.         dwProcessorType As Long
    10.         dwAllocationGranularity As Long
    11.         dwReserved As Long
    12. End Type
    13.  
    14. Dim InfoResult As SYSTEM_INFO
    15. GetSystemInfo InfoResult
    16. MsgBox "Your CPU type is " & InfoResult.dwProcessorType
    17. 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
  •  



Click Here to Expand Forum to Full Width