系統垃圾清理批處理代碼
作者:佚名 來源:本站 時間:2018-08-08 點擊:470次
@echo off
echo *************************
echo 軟件制作:王紅波
echo.
echo 二零零八年一月四日
echo *************************
echo.
echo 正在清除系統垃圾文件,請稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo.
echo *************************
echo 本軟件由 王紅波 制作
echo.
echo 歡迎使用!
echo *************************
echo.
echo 清除系統垃圾完成!
echo. & pause
使用方法:新建*.txt文件,將上述代碼復制保存到新建的*.txt文件,并將文件名改為*.bat,雙擊看看效果,^_^。
- 上一篇:
- 下一篇: 使鼠標放到任務欄右邊的日期欄時怎樣顯示星期