怎样快速清理磁盘上的内容,使系统恢复原状

来源:百度知道 编辑:UC知道 时间:2024/05/15 17:37:14
电脑用时间长了,保存的无用的文件或程序就多了,一个一个去删除太慢,怎样快速的清理磁盘空间?

以下文字复制,另存为“垃圾清理.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 清除系统LJ完成!
echo. & pause

将以下内容COPY到记事本中,然后另存为bat文件,运行一下,垃圾文件基本上就全清理了,我试过,放心使用吧!不过一些大型的软件建议从添加