Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM every line starting with REM is a commentary line and will not be executed.
- 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.
- REM the COM port of your Watchdog
- set portname=COM5
- REM the time as hexadecimal value, this value multiplied by 10 is the timeout of the Watchdog, at which your Computer will be resetted
- set timeout=12
- REM the time in seconds how often the device-timer will be resetted
- set interval=10
- REM setting up COM port with correct settings
- mode %portname%:96,n,8,1
- echo %timeout%>timeout.txt
- certutil -decodehex timeout.txt timeout.bin
- :loop
- copy timeout.bin \\.\%portname%
- timeout %interval%
- goto loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement