How to detect CPU type and speed

  • Thread starter Thread starter RobinSword
  • Start date Start date
R

RobinSword

Hi there!

I want my VB.NET-program to detect CPU type and speed like:
"Intel Pentium 3,06 GHz".
How can I do that with VB.NET ?

If there is the answer somewhere in the forum: Sorry, I didn't find
the
search-button, I can only search all GroupSrv.com and not a specific
forum... :(
 
Hi,

Add a reference to system.management.dll.

Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_Processor")

moReturn = moSearch.Get

For Each mo In moReturn

Dim strout As String = String.Format("{0} - {1}", mo("Name"),
mo("CurrentClockSpeed"))

Debug.WriteLine(strout)

Next



Ken

---------------------------

Hi there!

I want my VB.NET-program to detect CPU type and speed like:
"Intel Pentium 3,06 GHz".
How can I do that with VB.NET ?

If there is the answer somewhere in the forum: Sorry, I didn't find
the
search-button, I can only search all GroupSrv.com and not a specific
forum... :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top