Guest User

Idle boost blahblah

a guest
Mar 23rd, 2015
818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.41 KB | None | 0 0
  1. @echo off
  2. SETLOCAL EnableExtensions
  3. set EXE=node.exe
  4.  
  5. goto START
  6.  
  7. :START
  8. echo Checking if node.exe is running
  9. FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto FOUND
  10. echo Not running
  11. goto NOTFOUND
  12.  
  13. :FOUND
  14. echo Process is still running, checking again in 30sec
  15. ping 127.0.0.1 -n 33 > nul
  16. goto START
  17.  
  18. :NOTFOUND
  19. echo Starting script...
  20. START coffee boost.coffee
  21. goto START
Advertisement
Add Comment
Please, Sign In to add comment