联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off set ProcessToDealWith=%1 if "%ProcessToDealWith:~-4%" neq ".exe" goto End :Monitoring %1 title Monitoring %1... (tasklist|find "%1" && goto Appeared || goto Monitoring %1) :Appeared title Appeared! set /p DeleteProcessOrNot=Do you want to delete it(them)?(Y/N): if %DeleteProcessOrNot% equ Y taskkill /im "%1" if %DeleteProcessOrNot% equ y taskkill /im "%1" goto End :End echo.