Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :checker
- timeout /t 10
- cls
- setlocal EnableDelayedExpansion
- set /A MAXT=70
- set "NEEDPOWEROF=NO"
- echo HOT TEMPERATURE = !MAXT! OR MORE
- echo ..................................
- for /F "usebackq tokens=1-2" %%a in (`C:\Users\draak\Desktop\watchdog\OpenHardwareMonitorReport.exe`) do (
- set string=%%a
- set ISHOT=COLD
- if "Sensor[0].CurrentTemp:"=="!string!" (
- set /a GRADUS=%%b
- if !GRADUS! GEQ %MAXT% (
- set ISHOT=HOT
- set "NEEDPOWEROF=YES"
- )
- echo(GPU = !GRADUS! !ISHOT!)
- )
- )
- echo ..................................
- echo NEED TO REBOOT ME? = !NEEDPOWEROF!
- if "YES"=="!NEEDPOWEROF!" (
- echo POWEROFF is processing...
- shutdown /p
- pause
- exit
- )
- endlocal
- goto :checker
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement