電腦用久了變慢、C 槽空間莫名縮水?別急著重灌,五支自製批次檔(.bat)幫你徹底清理垃圾、精簡啟動項、移除右鍵選單、轉換 NTFS、加上磁碟標籤,讓系統輕盈如新。
.bat 結尾(如 清除系統垃圾.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 %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 清除完成!
pause
清除項目:暫存檔、日誌、檢查檔、備份檔、IE 快取、Cookies、最近使用清單、Prefetch 等,不傷系統檔案。
@echo off
color 1f
title 清除多餘啟動項
pause
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /va /f
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /va /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v ctfmon.exe /d "C:\WINDOWS\system32\ctfmon.exe"
reg delete "HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg" /f
...(續註冊表還原輸入法相關鍵值)...
del "C:\Documents and Settings\All Users\開始功能表\程式集\啟動\*.*" /q /f
del "%userprofile%\開始功能表\程式集\啟動\*.*" /q /f
start C:\WINDOWS\pchealth\helpctr\binaries\msconfig.exe
@echo off
title 清除桌面右鍵多餘選單
color 1a
pause
regsvr32 /u /s igfxpph.dll
reg delete HKCR\Directory\Background\shellex\ContextMenuHandlers /f
reg add HKCR\Directory\Background\shellex\ContextMenuHandlers\new /ve /d {D969A300-E7FF-11d0-A93B-00A0C90F2719}
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v HotKeysCmds /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IgfxTray /f
@echo off
color 1b
title C槽轉換NTFS
convert c: /fs:ntfs
NTFS 提升儲存效率、支援權限設定,但 DOS/Win9x 無法識別,視需求執行。
@echo off
title 設定磁碟卷標
color 1b
pause
label c:系統
label d:軟體
label e:影音
label f:遊戲
label g:資料
方便辨識用途,適合新電腦初始化時使用。