本文介紹Windows7如何解決硬盤空間不足的情況。溫馨提示:清理之前,請(qǐng)將重要的數(shù)據(jù)進(jìn)行備份,避免造成不必要的數(shù)據(jù)丟失。
1.在服務(wù)器桌面空白處,鼠標(biāo)右鍵,點(diǎn)擊“新建”選擇“文本文檔”。如下圖所示:
2.創(chuàng)建好文本后雙擊打開,將以下清理命令復(fù)制進(jìn)文檔并保存好。(文檔可以重命名,防止誤刪。)
@echo off
echo 正在清除系統(tǒng)垃圾文件,請(qǐng)稍等......
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 清除系統(tǒng)LJ完成!
echo. & pause
3.創(chuàng)建好的文本文檔需要把格式修改為“bat”,這樣雙擊才可以直接運(yùn)行。
注:該教材適用于Windows所有基礎(chǔ)版本。