Write pliz sourcecode bat file (to restart every 5 min Connector
#8

The code is good, checks for the process if exists and it it has the status running then it starts a new process, if the process doesnt exist:

@echo off
echo Starting Connector Restarter
Confusedtart
tasklist /nh /fi "imagename eq Connector.exe" /fi "status eq running" | find /i "Connector.exe" >nul && (
tasklist /nh /v /fi "status eq Not Responding" | find /i "Connector.exe" >nul && (
echo "Connector.exe" crashed
taskkill /im Connector.exe /f
taskkill /im WerFault.exe /f
start Connector.exe
)||(
echo "Connector.exe" found
)
) || (
echo "Connector.exe" not found
start Connector.exe
)
timeout /t 200 /nobreak
goto start



Messages In This Thread
[No subject] - by ilyas77 - 07-15-2012, 07:09 AM
[No subject] - by ilyas77 - 07-16-2012, 04:00 AM
[No subject] - by ilyas77 - 07-16-2012, 06:24 AM
[No subject] - by someone - 07-16-2012, 08:35 AM
[No subject] - by ilyas77 - 07-16-2012, 09:51 AM
[No subject] - by someone - 07-16-2012, 10:37 AM
[No subject] - by ilyas77 - 07-16-2012, 10:41 AM
[No subject] - by someone - 07-16-2012, 11:08 AM
[No subject] - by Wizatek - 07-16-2012, 02:49 PM
[No subject] - by -S-y...? - 07-28-2012, 07:52 AM
[No subject] - by dethunter12 - 07-28-2012, 08:58 AM
[No subject] - by Creep - 08-10-2012, 01:44 PM
[No subject] - by youmom12 - 08-10-2012, 05:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)