Skip to content

Instantly share code, notes, and snippets.

@jesusjimsa
Created November 6, 2020 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesusjimsa/8b9e86ecfa36a1338a775c821dbc00fb to your computer and use it in GitHub Desktop.
Save jesusjimsa/8b9e86ecfa36a1338a775c821dbc00fb to your computer and use it in GitHub Desktop.
@echo off
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment