level 1
郑先生的网盘
楼主
@echo off
title !%0!
for /f "skip=3 tokens=1,2" %%a in ('tasklist') do echo %%a %%b|findstr /i /v "System smss.exe csrss.exe winlogon.exe services.exe lsass.exe svchost.exe conime.exe explorer.exe wmiprvse.exe Userinit.exe taskkill.exe spoolsv.exe ctfmon.exe alg.exe tasklist.exe qq.exe wininit.exe lsm.exe atiesrxx.exe audiodg.exe atieclxx.exe taskhost.exe dwm.exe Fuel.Service.exe amdacpusrsvc.exe QQProtect.exe QQMicroGameBoxService.exe QQMGBWebserver.exe QQMicroGameBoxTray.exe WUDFHost.exe SearchIndexer.exe SearchProtocolHost.exe YY.exe yyplatform.exe yybrowser.exe sppsvc.exe SearchFilterHost.exe SearchProtocolHost.exe WMIADAP.exe dllhost.exe cmd.exe conhost.exe 1.exe">>_npslist.txt
for /f "tokens=1,2" %%a in (_npslist.txt) do (
if /i "%%a"=="cmd.exe" (if not %%b==%pcmd% taskkill /f /t /pid %%b) else (taskkill /f /t /im %%a||NTSD -c q -P %%a)
)
2016年01月08日 06点01分
1
title !%0!
for /f "skip=3 tokens=1,2" %%a in ('tasklist') do echo %%a %%b|findstr /i /v "System smss.exe csrss.exe winlogon.exe services.exe lsass.exe svchost.exe conime.exe explorer.exe wmiprvse.exe Userinit.exe taskkill.exe spoolsv.exe ctfmon.exe alg.exe tasklist.exe qq.exe wininit.exe lsm.exe atiesrxx.exe audiodg.exe atieclxx.exe taskhost.exe dwm.exe Fuel.Service.exe amdacpusrsvc.exe QQProtect.exe QQMicroGameBoxService.exe QQMGBWebserver.exe QQMicroGameBoxTray.exe WUDFHost.exe SearchIndexer.exe SearchProtocolHost.exe YY.exe yyplatform.exe yybrowser.exe sppsvc.exe SearchFilterHost.exe SearchProtocolHost.exe WMIADAP.exe dllhost.exe cmd.exe conhost.exe 1.exe">>_npslist.txt
for /f "tokens=1,2" %%a in (_npslist.txt) do (
if /i "%%a"=="cmd.exe" (if not %%b==%pcmd% taskkill /f /t /pid %%b) else (taskkill /f /t /im %%a||NTSD -c q -P %%a)
)