A .bat file helps cleaning your PC

 用txt記事本製作一個垃圾文件清理工具,填寫如以下垃圾文件清理代碼,保存為.bat即可。

@echo off 
color 0E
title=垃圾文件清理工具
@echo.
@echo.
@echo.
@echo.======================================================
@echo.                垃圾文件清理工具
@echo.                每月清理一次有助于电脑运行 
@echo. 
@echo.======================================================
pause
::@echo.taskkill /f /im explorer.exe
del /f /s /q %systemdrive%\*.tmp 
del /f /s /q %systemdrive%\*._mp 
rd /s /q %windir%\temp & md %windir%\temp
del /f /s /q "%userprofile%\local settings\temp\*.*" 
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid 
del /f /s /q %systemdrive%\*.chk 
del /f /s /q %windir%\*.bak 
@del /f /s /q %systemroot%\prefetch\.
@del /f /s /q "%userprofile%\cookies\."
@del /f /s /q "%userprofile%\recent\."
@del /f /s /q "%userprofile%\local settings\temp\."
@del /f /s /q "%userprofile%\local settings\history\."
@del /f /s /q "%userprofile%\local settings\temporary internet files\."
@del /f /s /q c:\*.tmp
@del /f /s /q  c:\*._mp
@del /f /s /q c:\*.log
@del /f /s /q  c:\*.qid
@del /f /s /q  c:\*.old
@del /f /s /q c:\*.bak
@del /f /s /q c:\recycler\*.*
@pause
del /f /s /q %systemdrive%\*.old
del /f /s /q c:\$recycle.bin\*.*
del /f /s /q d:\$recycle.bin\*.*
del /f /s /q e:\$recycle.bin\*.*
del /f /s /q f:\$recycle.bin\*.*
rd /s /q %windir%\SoftwareDistribution\Download & md %windir%\SoftwareDistribution\Download
del /f /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.*"
del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*"
::@echo.start explorer
posted @ 2017-06-29 16:29  JeanChan  阅读(181)  评论(0编辑  收藏  举报