This one is used to zip a folder date and time it then drop into dropbox. just automate the process for easy back ups.
This is a bat to monitor servuo,exe in the event that it crashes... If it crashed for longer than 30 seconds it will reboot it. This should work fine through restarts.
Essentials to me as I'm not going to do this manually because id rather be doing something else.
Back ups code:
@echo off
set "processName=YourProcess.exe"
set "processPath=C:\Path\To\YourProcess.exe"
set "restartDelay=30"
:StartProcess
start "" "%processPath%"
:CheckProcess
tasklist /FI "IMAGENAME eq %processName%" | find /I "%processName%" >nul
if errorlevel 1 (
echo Process "%processName%" is not running.
timeout /t %restartDelay% >nul
tasklist /FI "IMAGENAME eq %processName%" | find /I "%processName%" >nul
if errorlevel 1 (
echo Restarting process "%processName%"...
goto StartProcess
)
)
timeout /t 5 >nul
goto CheckProcess
This is a bat to monitor servuo,exe in the event that it crashes... If it crashed for longer than 30 seconds it will reboot it. This should work fine through restarts.
servuo.exe monitor:
@echo off
set "processName=YourProcess.exe"
set "processPath=C:\Path\To\YourProcess.exe"
set "restartDelay=30"
:StartProcess
start "" "%processPath%"
:CheckProcess
tasklist /FI "IMAGENAME eq %processName%" | find /I "%processName%" >nul
if errorlevel 1 (
echo Process "%processName%" is not running.
timeout /t %restartDelay% >nul
tasklist /FI "IMAGENAME eq %processName%" | find /I "%processName%" >nul
if errorlevel 1 (
echo Restarting process "%processName%"...
goto StartProcess
)
)
timeout /t 5 >nul
goto CheckProcess
Essentials to me as I'm not going to do this manually because id rather be doing something else.