電腦在使用了之後,會產生垃圾快取,若不及時清理會降低電腦的執行速度。
1、步驟:
2、新建乙個記事本檔案,命名「系統清理」;(或其他名字)
3、原封不動複製下面的文字到該記事本中
@echo off儲存並關閉記事本,後修改記事本的字尾名.txt改為.bat,雙擊可執行;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 清除系統l完成!
echo. & pause
同事共享的乙個清除電腦垃圾的Bat檔案
echo off 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 systemdr...
清除手機的快取檔案
首先獲取快取的大小 create by mazhanzhu on 2019 3 21 public class datacleanmanager return getformatsize cachesize 清除快取 public static void clearallcache context ...
Thinkphp清除快取檔案
thinkphp的快取在開發中是非常煩人的,因為有的時候因為快取的問題而出現的錯誤是非常難找的。刪除快取更是麻煩,還要去資料夾下刪除 如果是linux開發伺服器的話還要登陸伺服器進行刪除。所以這個時候用php命令刪除thinkphp的快取是非常不錯的選擇。cacheaction.class.php ...