不准...- Dim u, s, CPUTemperature
- Set mCPU=GetObject("winmgmts:{impersonationLevel=impersonate}!root\wmi").ExecQuery("Select CurrentTemperature From MSAcpi_ThermalZoneTemperature")
- For Each u In mCPU
- s=s&u.CurrentTemperature
- Next
- Set mCPU=Nothing
- CPUTemperature=(s-2732)/10
- MsgBox "The Current Temperature of Your CPU is: "&CPUTemperature&"℃"
复制代码
|