We deal with Home users in this Community, not writing Apps.
I suggest: Visit Microsoft Q&A to post new questions.
Cheers.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am busy making a program to check what the CPU temperature is so that I can get notified and save my work in order to shut down the laptop and let it cool down. I started testing if this works and used this command (with admin privileges):
:start
sleep 1
cls
for /f "skip=1 tokens=2 delims==" %%A in ('wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature /value') do set /a "HunDegCel=(%%~A*10)-27315"
echo %HunDegCel:~0,-2%.%HunDegCel:~-2% Degrees Celsius
goto start
pause
The output text stayed at 27.85 Degrees Celsius
Apparently, this is the reading of an area on the motherboard, not the CPU. Would anyone know what I should use to get the reading and be able to use it as a variable? I'd prefer it to be for CMD, but it can also be for WMIC.
Laptop Specs:
Windows 8.1 64-bit (With Windows Resource Kit 2003 installed)
CPU: Intel Pentium N3520 @ 2.16GHz
Motherboard: Hewlett-Packard 2213
RAM: 4,00GB DDR3 @ 666MHz
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
We deal with Home users in this Community, not writing Apps.
I suggest: Visit Microsoft Q&A to post new questions.
Cheers.