Advertisement
Guest User

Untitled

a guest
Oct 26th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REM every line starting with REM is a commentary line and will not be executed.
  2. REM simple script, to reset the timer of a USB Hardware Watchdog to 180seconds every 10seconds, please put this script into the startup list of Windows.
  3.  
  4. REM the COM port of your Watchdog
  5. set portname=COM5
  6.  
  7. REM the time as hexadecimal value, this value multiplied by 10 is the timeout of the Watchdog, at which your Computer will be resetted
  8. set timeout=12
  9.  
  10. REM the time in seconds how often the device-timer will be resetted
  11. set interval=10
  12.  
  13. REM setting up COM port with correct settings
  14. mode %portname%:96,n,8,1
  15.  
  16. echo %timeout%>timeout.txt
  17. certutil -decodehex timeout.txt timeout.bin
  18.  
  19. :loop
  20. copy timeout.bin \\.\%portname%
  21. timeout %interval%
  22. goto loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement