OK論壇

 找回密碼
 註冊
查看: 1492|回復: 0

[原創]清除電腦不必要的垃圾檔案

[複製鏈接]

該用戶從未簽到

發表於 2010-2-3 20:13:00 | 顯示全部樓層 |閱讀模式
本帖最後由 cong6137 於 2010-2-3 08:16 PM 編輯

@echo off
echo 正在清除系統垃圾檔案中,請稍候......
DEL /S /F /Q %systemdrive%\*.tmp
DEL /S /F /Q %systemdrive%\*._mp
DEL /S /F /Q %systemdrive%\*.gid
DEL /S /F /Q %systemdrive%\*.chk
DEL /S /F /Q %systemdrive%\*.old
DEL /S /F /Q %systemdrive%\recycled\*.*
DEL /S /F /Q %windir%\*.bak
DEL /S /F /Q %windir%\prefetch\*.*
DEL /S /F /Q %userprofile%\cookies\*.*
DEL /S /F /Q %userprofile%\recent\*.*
DEL /S /F /Q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
DEL /S /F /Q "%userprofile%\Local Settings\Temp\*.*"
DEL /S /F /Q "%userprofile%\recent\*.*"
DEL /S /F /Q "%systemroot%\Temp\*.*"
DEL /S /F /Q "%AllUsersProfile%\「開始」功能表\程式集\Windows Messenger.lnk"
RD /S /Q %windir%\temp & md %windir%\temp
RD /S /Q "%userprofile%\Local Settings\Temp"
MD "%userprofile%\Local Settings\Temp"
RD /S /Q "%systemdrive%\Program Files\Temp"
MD "%systemdrive%\Program Files\Temp"
RD /S /Q "%systemdrive%\d"
echo 清除系統垃圾完成!


以上複製到記事本另存在桌面檔名存成,清除系統垃圾.bat 另存在桌面。

點兩下自動清理暫存檔。

我試過很多次沒事。放心吧。

我都用清除系統垃圾.bat +CCleaner來清理我的系統。

CCleaner下載網址如下

[url=http://www.ccleaner.com/download]http://www.ccleaner.com/download[/url]

進入之後

Version v2.20.920 (3,172KB)
- Download from FileHippo.com (more downloads)
- Alternative Download

點選Download from FileHippo.com (more downloads)或Alternative Download 就可以下載。

之後打開CCleaner選 進階 舊的Perfetch 資料 , IIS日誌檔 ,Hotfix 反安裝檔 請打勾。

之後請按左邊,選項(O)->設定 ->刪除資料 選徹底刪除資料(較

慢)並選則 DOD 5220.22M(3次複寫)。

如果想要清除系統垃圾.bat點下去清理完之後想要跑出

CCleaner,請在 echo 清除系統垃圾完成! 上面加入

start CCleaner 之後存檔就會出現了。

評分

參與人數 1積分 +100 現金 +100 積極性 +100 收起 理由
12121232 + 100 + 100 + 100 這個原始碼可以專指定檔案 如果把他附檔名

查看全部評分

回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|小黑屋|OK討論區

GMT+8, 2025-7-22 08:23 PM , Processed in 0.048539 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回復 返回頂部 返回列表