for /f "tokens=2" %%a in ('tasklist ^|find /i "杀死的程序名.exe"') do set qqpid=%%a tskill %qqpid% 此外还要在当前目录添加tskill.exe文件