本文介绍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所有基础版本。