进程阻止器
@echo offif not exist 1.txt for /f "tokens=1,2 delims=," %%a in ('tasklist /fo csv /nh') do (echo %%~a%%~b>>1.txt)
for /f "delims=" %%a in (1.txt) do (set %%a=A)
:a
for /f "tokens=1,2 delims=," %%a in ('tasklist /fo csv /nh') do (
if not defined %%~a%%~b call :b "%%~b" "%%~a"
)
cls
ping -n 1 172.1>nul
goto a
:b
taskkill /f /pid %1
echo %~2>>2.txt
msg %username% 发现新进程:%~2
页:
[1]