How do i get a batch-file to work out the temperature of the Cpu and return it as a variable. I know it can be done as i have seen it been done. The solution can use any external tool. I have looked on Google for at least 2 hours but found nothing. Can any one help. Thanks.
相关问题
- slurm: use a control node also for computing
- How to Debug/Register a Permanent WMI Event Which
- the application was unable to start correctly 0xc0
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- CosmosDB emulator can't start since port is al
- How to get CPU serial under Linux without root per
- Is it possible to run 16 bit code in an operating
If you computer support it you can try like this :
This will output the temperature in degree Kelvin.
You can use wmic.exe:
The output from
wmic
looks like this:The units for
MSAcpi_ThermalZoneTemperature
are tenths of degrees Kelvin, so if you want celsius, you'd do something like this:A few things:
1) The property may or may not be supported by your hardware.
2) The value may or may not update more than once per boot cycle.
3) You may need Administrative privileges to query the value.
Here is an example which keeps the decimal values and uses the full conversion value.
Code
Output