自动结束强制智能结束.vbs
vbs主要起到运行bat的目地,传参 复制代码 代码如下: set wshshell=createobject("wscript.shell") wshshell.run "针对性进程管理.bat" wscript.sleep 2000
for x=1 to 30 wscript.sleep 1000 wshshell.sendkeys "{enter 3}" next
针对性进程管理.bat
复制代码 代码如下: @echo offsetlocal enabledelayedexpansion ping -n 3 127.0gt;nul if exist tem.txt del /f /q tem.txt echo.正在刷选进程............. echogt;gt;tem.txt explorer.exe echogt;gt;tem.txt System Idle Process echogt;gt;tem.txt System echogt;gt;tem.txt smss.exe echogt;gt;tem.txt csrss.exe echogt;gt;tem.txt winlogon.exe echogt;gt;tem.txt services.exe echogt;gt;tem.txt TheWorld.exe echogt;gt;tem.txt lsass.exe echogt;gt;tem.txt svchost.exe echogt;gt;tem.txt spoolsv.exe echogt;gt;tem.txt alg.exe echogt;gt;tem.txt ctfmon.exe echogt;gt;tem.txt ekrn.exe echogt;gt;tem.txt wdfmgr.exe echogt;gt;tem.txt 360tray.exe echogt;gt;tem.txt egui.exe echogt;gt;tem.txt wmiprvse.exe echogt;gt;tem.txt QQ.exe echogt;gt;tem.txt cmd.exe echogt;gt;tem.txt IEXPLORE.EXE echogt;gt;tem.txt TXPlatform.exe echogt;gt;tem.txt tasklist.exe echogt;gt;tem.txt conime.exe echogt;gt;tem.txt safeboxTray.exe echogt;gt;tem.txt wscript.exe for /f "eol= tokens=1,2 delims=," %%i in ('tasklist /nh /fo csv') do ( findstr /i /x %%i tem.txt gt;nul if errorlevel 1 ( echo ============================================================= echo ============================================================= echo %%i位于以下路径 wmic process where processid=%%j get executablepath|findstr /v /i "executablepath" ntsd -c q -p %%j 1gt;nul 2gt;nul ping -n 1 127.0gt;nul tasklist|findstr /i %%i gt;nul if errorlevel 1 ( echo %%i已经完全成功结束 ) else ( echo %%i未能完全结束,估计是个流氓程序 ) ) ) del tem.txt echo 结束进程任务基本完成 taskkill /f /im wscript.exe mshta vbscript:msgbox("我的任务完成了!请看详细信息",,"刷选进程")(window.close) taskkill /f /im cmd.exe
(编辑:南京站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|