1、点击“开始”→“运行”,打开“运行”对话框,输入命令“cleanmgr.exe”启动磁盘清理程序。
2、在打开的“选择驱动器”窗口中选择要清理的磁盘,如“C盘”,选择完成后点击“确定”按钮。
3、然后就会自动运行“磁盘清理”程序对当前所选磁盘进行清理工作。
4、另外,我们也可以编写一个批处理文件,用来对指定的目录和文件类型进行定向清理。 右击“桌面”,选择“新建”谘锔康民→“文件文件”,然后在文件中输入如图所示的内容: 新建一个记事本,在里面粘贴以下内容@echo off echo 正在清除系统垃圾文件,请稍等-------------- 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\*.*" 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 echo 清除系统垃圾文件完成------------------------ echo. & pause 然后把记事本另存为“Clear.bat“的批处理文件。
5、最后双击运行该文件,就可以执行清除系统垃圾的工作啦。