Windows XP如何自动清理存储盘空间
本文介绍Windows XP如何解决存储盘空间不足的情况。温馨提示:清理之前,请将中心的信息进行备份,避免造成不必要的信息丢失。
1.在主机桌面空白处,鼠标器右键,点击“新建”选择“文本文档”。如下图所示:
2.创建好文本后双击打开,将以下清理命令复制进文档并保存好。(文档可以重命名,防止误删。)
@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 清除体系LJ完成!
echo. & pause
3.创建好的文本文档需要把格式修改为“bat”,这样双击才可以直接运行。
注:该教材适用于Windows所有基础版本。