Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim WSH, sRpt, i, iSpeed
Const csPfx = "HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\"
Function CPU(ByVal iProc, ByVal sKey)
CPU = WSH.RegRead(csPfx & CStr(iProc) & sKey)
End Function
Set WSH = Wscript.CreateObject("WScript.Shell")
For i = 0 to 7
On Error Resume Next ' Make sure CPU # is valid.
iSpeed = CPU(i, "\~MHZ")
If Err.Number = 0 Then
sRpt = sRpt & "CPU " & CStr(i) & vbCrLf
sRpt = sRpt & CPU(i, "\Identifier") & vbCrLf
sRpt = sRpt & CPU(i, "\VendorIdentifier") & vbCrLf
sRpt = sRpt & "Speed " & CStr(iSpeed) & "Mhz" & vbCrLf
End If
Err.Clear
Next
MsgBox sRpt
Set WSH = Nothing