RunWait, %ComSpec% /c tasklist >a.txt, , Hide InputBox, key, 程序名关键词批量结束, 请输入程序名关键词!, StringLen, len, key if len < 2 { MsgBox, 16, 警告, 关键词小于两位,可能会导致系统崩溃,请重试! Reload } Loop { FileReadLine, line, a.txt, %A_Index% if errorlevel Break IfInString, line, .exe { StringSplit, var, line, ., IfInString, var1, %key% { runwait, %ComSpec% /c taskkill /f /IM %var1%.exe, , Hide } } }
60 queries in 1.750 seconds |