這篇文章主要為大家展示了“如何自制控制進(jìn)程和控制開機(jī)啟動(dòng)項(xiàng)的批處理”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“如何自制控制進(jìn)程和控制開機(jī)啟動(dòng)項(xiàng)的批處理”這篇文章吧。
自動(dòng)結(jié)束強(qiáng)制智能結(jié)束.vbs
vbs主要起到運(yùn)行bat的目地,傳參
代碼如下:
set wshshell=createobject("wscript.shell")
wshshell.run "針對(duì)性進(jìn)程管理.bat"
wscript.sleep 2000
for x=1 to 30
wscript.sleep 1000
wshshell.sendkeys "{enter 3}"
next
針對(duì)性進(jìn)程管理.bat
代碼如下:
@echo off&setlocal enabledelayedexpansion
ping -n 3 127.0>nul
if exist tem.txt del /f /q tem.txt
echo.正在刷選進(jìn)程.............
echo>>tem.txt explorer.exe
echo>>tem.txt System Idle Process
echo>>tem.txt System
echo>>tem.txt smss.exe
echo>>tem.txt csrss.exe
echo>>tem.txt winlogon.exe
echo>>tem.txt services.exe
echo>>tem.txt TheWorld.exe
echo>>tem.txt lsass.exe
echo>>tem.txt svchost.exe
echo>>tem.txt spoolsv.exe
echo>>tem.txt alg.exe
echo>>tem.txt ctfmon.exe
echo>>tem.txt ekrn.exe
echo>>tem.txt wdfmgr.exe
echo>>tem.txt 360tray.exe
echo>>tem.txt egui.exe
echo>>tem.txt wmiprvse.exe
echo>>tem.txt QQ.exe
echo>>tem.txt cmd.exe
echo>>tem.txt IEXPLORE.EXE
echo>>tem.txt TXPlatform.exe
echo>>tem.txt tasklist.exe
echo>>tem.txt conime.exe
echo>>tem.txt safeboxTray.exe
echo>>tem.txt wscript.exe
for /f "eol= tokens=1,2 delims=," %%i in ('tasklist /nh /fo csv') do (
findstr /i /x %%i tem.txt >nul
if errorlevel 1 (
echo =============================================================
echo =============================================================
echo %%i位于以下路徑
wmic process where processid=%%j get executablepath|findstr /v /i "executablepath"
ntsd -c q -p %%j 1>nul 2>nul
ping -n 1 127.0>nul
tasklist|findstr /i %%i >nul
if errorlevel 1 (
echo %%i已經(jīng)完全成功結(jié)束
) else (
echo %%i未能完全結(jié)束,估計(jì)是個(gè)流氓程序
)
)
)
del tem.txt & echo 結(jié)束進(jìn)程任務(wù)基本完成
taskkill /f /im wscript.exe
mshta vbscript:msgbox("我的任務(wù)完成了!請(qǐng)看詳細(xì)信息",,"刷選進(jìn)程")(window.close)
taskkill /f /im cmd.exe
以上是“如何自制控制進(jìn)程和控制開機(jī)啟動(dòng)項(xiàng)的批處理”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
網(wǎng)頁標(biāo)題:如何自制控制進(jìn)程和控制開機(jī)啟動(dòng)項(xiàng)的批處理-創(chuàng)新互聯(lián)
標(biāo)題URL:http://jinyejixie.com/article40/dijcho.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設(shè)、建站公司、移動(dòng)網(wǎng)站建設(shè)、品牌網(wǎng)站制作、網(wǎng)站收錄、微信小程序
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容