有网友碰到这样的问题“关于批处理结束结束指定进程的命令(比如包含Up) 高手救救”。小编为您整理了以下解决方案,希望对您有帮助:
解决方案1:
@echo off
if "%1" == "h" goto code
mshta vbscript:createobject("wscript.shell").run("%~fs0 h",0)(window.close)&&exit
:code
:loop
for /f "tokens=1 delims= " %%i in ('tasklist ^|findstr "up"') do (
taskkill /f /im %%i
)
ping -n 1200 127.1>nul
goto :loop
如果需要结束它,请通过任务管理器结束
解决方案2:
@echo off&color bf&title 进程专杀!
:loop
for /f "skip=1 tokens=1" %%i in ('tasklist ^|findstr "up"') do (
if not %%i==" " taskkill /f /im %%i)
ping -n 20 127.1>nul&goto loop
解决方案3:
:again
tasklist|findstr "*up*.exe"&&taskkill /f /im "*up*.exe"
ping /n 1200 127.1>nul
goto again