開(kāi)機(jī)啟動(dòng)項(xiàng)清理代碼bat版
來(lái)源:易賢網(wǎng) 閱讀:1729 次 日期:2014-05-15 20:27:51
溫馨提示:易賢網(wǎng)小編為您整理了“開(kāi)機(jī)啟動(dòng)項(xiàng)清理代碼bat版”,方便廣大網(wǎng)友查閱!

代碼如下:

@echooff&setlocalenabledelayedexpansion

modeconcols=61lines=25&colorf5

mshtavbscript:msgbox("在運(yùn)行程序前,請(qǐng)確認(rèn)所有編輯資料已經(jīng)保存",,"自制優(yōu)化系統(tǒng)")(window.close)

ifexisttem.txtdel/f/qtem.txt

echo.正在刷選進(jìn)程.............

echo>>tem.txtexplorer.exe

echo>>tem.txtSystemIdleProcess

echo>>tem.txtSystem

echo>>tem.txtsmss.exe

echo>>tem.txtcsrss.exe

echo>>tem.txtwinlogon.exe

echo>>tem.txtservices.exe

echo>>tem.txtTheWorld.exe

echo>>tem.txtlsass.exe

echo>>tem.txtsvchost.exe

echo>>tem.txtspoolsv.exe

echo>>tem.txtalg.exe

echo>>tem.txtctfmon.exe

echo>>tem.txtekrn.exe

echo>>tem.txtwdfmgr.exe

echo>>tem.txt360tray.exe

echo>>tem.txtegui.exe

echo>>tem.txtwmiprvse.exe

echo>>tem.txtQQ.exe

echo>>tem.txtcmd.exe

echo>>tem.txtIEXPLORE.EXE

echo>>tem.txtTXPlatform.exe

echo>>tem.txttasklist.exe

echo>>tem.txtconime.exe

echo>>tem.txtsafeboxTray.exe

echo>>tem.txtThunder5.exe

echo>>tem.txttudouva.exe

for/f"eol=tokens=1,2delims=,"%%iin('tasklist/nh/focsv')do(

findstr/i/x%%item.txt>nul

iferrorlevel1(

taskkill/f/pid%%j1>nul2>nul

)

)

deltem.txt&echo結(jié)束進(jìn)程任務(wù)基本完成

echo======================================

echo====

echo======================================

echo優(yōu)化開(kāi)機(jī)啟動(dòng)項(xiàng)

del/f/s/q"%systemdrive%\Docume~1\AllUsers\「開(kāi)始」菜單\程序\啟動(dòng)\*.*"

del/f/s/q"%userprofile%\「開(kāi)始」菜單\程序\啟動(dòng)\*.*"

for/f"delims=\"%%jin('fsutilfsinfodrives^|find/v""')do(

del/f/q"%%j\*.inf">nul2>nul&del/f/q/ah"%%j\*.exe"2>nul

)

echo>>tem.txt"egui"

echo>>tem.txt"essact"

echo>>tem.txt"CTFMON.EXE"

setkey=Software\Microsoft\Windows\CurrentVersion\run

REGEXPORT"HKCU\%key%"a.reg/nt4>nul

echoREGEDIT4>b.reg

echo[HKEY_CURRENT_USER\%key%]>>b.reg

for/f"skip=2eol=[tokens=1,2delims=="%%ain(a.reg)do(

findstr/i%%atem.txt>nul||echo%%a=->>b.reg

)

for/f"skip=2delims=["%%min('find/i"\run\"a.reg')do(

echo^[^-%%m>>b.reg

)

regedit/sb.reg

REGEXPORT"HKLM\%key%"a.reg/nt4>nul

echoREGEDIT4>b.reg

echo[HKEY_LOCAL_MACHINE\%key%]>>b.reg

for/f"skip=2eol=[tokens=1,2delims=="%%ain(a.reg)do(

findstr/i%%atem.txt>nul||echo%%a=->>b.reg

)

for/f"skip=2delims=["%%min('find/i"\run\"a.reg')do(

echo^[^-%%m>>b.reg

)

regedit/sb.reg

del/qa.reg

del/qb.reg

deltem.txt

echo已經(jīng)優(yōu)化好

echo======================================

echo====

echo======================================

echo清理部分系統(tǒng)垃圾

del/f/q%systemdrive%\*.tmp>nul2>nul

del/f/q%systemdrive%\*._mp>nul2>nul

del/f/q%systemdrive%\*.log>nul2>nul

del/f/q%systemdrive%\*.gid>nul2>nul

del/f/q%systemdrive%\*.chk>nul2>nul

del/f/q%systemdrive%\*.old>nul2>nul

del/f/q%windir%\*.bak>nul2>nul

del/f/q%windir%\*.tmp>nul2>nul

del/f/q%windir%\prefetch\*.*>nul2>nul

del/f/s/q%systemdrive%\recycled\*.*>nul2>nul

del/f/q"%ALLUSERSPROFILE%\Documents\DrWatson\*.*">nul2>nul

del/f/q"%USERPROFILE%\Cookies\*.txt">nul2>nul

del/f/q/s"%TEMP%\*.*">nul2>nul

del/f/q/s"%Systemroot%\Prefetch\*.*">nul2>nul

del/f/q"%USERPROFILE%\Recent\*.*">nul2>nul

del/f/q"%USERPROFILE%\ApplicationData\Microsoft\Office\Recent\*.lnk">nul2>nul

del/f/q/s"%USERPROFILE%\LocalSettings\Temp\*.*">nul2>nul

rd/s/q%windir%\temp&md%windir%\temp>nul2>nul

ifnotexist%SystemRoot%\Minidump\NULdel/f/q/s%SystemRoot%\Minidump\*.*>nul2>nul

del/f/s/q"%userprofile%\LocalSettings\TemporaryInternetFiles\*.*">nul2>nul

echo已經(jīng)清理了

mshtavbscript:msgbox("everythingdone!!",,"完成信息")(window.close)

taskkill/f/imcmd.exe

更多信息請(qǐng)查看IT技術(shù)專欄

更多信息請(qǐng)查看腳本欄目
易賢網(wǎng)手機(jī)網(wǎng)站地址:開(kāi)機(jī)啟動(dòng)項(xiàng)清理代碼bat版
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門(mén)公布的正式信息和咨詢?yōu)闇?zhǔn)!

2025國(guó)考·省考課程試聽(tīng)報(bào)名

  • 報(bào)班類型
  • 姓名
  • 手機(jī)號(hào)
  • 驗(yàn)證碼
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡(jiǎn)要咨詢 | 簡(jiǎn)要咨詢須知 | 加入群交流 | 手機(jī)站點(diǎn) | 投訴建議
工業(yè)和信息化部備案號(hào):滇ICP備2023014141號(hào)-1 云南省教育廳備案號(hào):云教ICP備0901021 滇公網(wǎng)安備53010202001879號(hào) 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號(hào)
云南網(wǎng)警備案專用圖標(biāo)
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號(hào):hfpxwx
咨詢QQ:526150442(9:00—18:00)版權(quán)所有:易賢網(wǎng)
云南網(wǎng)警報(bào)警專用圖標(biāo)