From a8bb08132887c603384030af4edb0ca0c650109d Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Sun, 26 May 2024 16:08:48 -0600 Subject: [PATCH] Add Scripts/Batch/Blue Iris/Server_Watchdog.bat --- Scripts/Batch/Blue Iris/Server_Watchdog.bat | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Scripts/Batch/Blue Iris/Server_Watchdog.bat diff --git a/Scripts/Batch/Blue Iris/Server_Watchdog.bat b/Scripts/Batch/Blue Iris/Server_Watchdog.bat new file mode 100644 index 0000000..81c8819 --- /dev/null +++ b/Scripts/Batch/Blue Iris/Server_Watchdog.bat @@ -0,0 +1,22 @@ +``` +@echo off + +REM Change to the Blue Iris 5 directory +CD "C:\Program Files\Blue Iris 5" + +:LOOP +REM Check if the BlueIrisAdmin.exe process is running +tasklist /FI "IMAGENAME eq BlueIris.exe" | find /I "BlueIris.exe" >nul + +REM If the process is not found, start the process +if errorlevel 1 ( + REM Start BlueIrisAdmin.exe + BlueIrisAdmin.exe +) + +REM Wait for 10 seconds before checking again +timeout /t 10 /nobreak >nul + +REM Go back to the beginning of the loop +GOTO :LOOP +``` \ No newline at end of file