Advertisement
Guest User

111

a guest
Jul 12th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. :checker
  3. timeout /t 10
  4. cls
  5. setlocal EnableDelayedExpansion
  6. set /A MAXT=70
  7. set "NEEDPOWEROF=NO"
  8. echo HOT TEMPERATURE = !MAXT! OR MORE
  9. echo ..................................
  10. for /F "usebackq tokens=1-2" %%a in (`C:\Users\draak\Desktop\watchdog\OpenHardwareMonitorReport.exe`) do (
  11.     set string=%%a
  12.     set ISHOT=COLD
  13.     if "Sensor[0].CurrentTemp:"=="!string!" (
  14.         set /a GRADUS=%%b
  15.         if !GRADUS! GEQ %MAXT% (
  16.           set ISHOT=HOT
  17.           set "NEEDPOWEROF=YES"
  18.         )
  19.         echo(GPU = !GRADUS! !ISHOT!)
  20.     )
  21. )
  22. echo ..................................
  23. echo NEED TO REBOOT ME? = !NEEDPOWEROF!
  24.  if "YES"=="!NEEDPOWEROF!" (
  25.   echo POWEROFF is processing...
  26.   shutdown /p
  27.   pause
  28.   exit
  29.  )
  30. endlocal
  31. goto :checker
  32. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement