Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- SETLOCAL EnableExtensions
- set EXE=node.exe
- goto START
- :START
- echo Checking if node.exe is running
- FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto FOUND
- echo Not running
- goto NOTFOUND
- :FOUND
- echo Process is still running, checking again in 30sec
- ping 127.0.0.1 -n 33 > nul
- goto START
- :NOTFOUND
- echo Starting script...
- START coffee boost.coffee
- goto START
Advertisement
Add Comment
Please, Sign In to add comment