Sian 发表于 2015-7-8 16:41:08

Windows 一键清理垃圾文件

本帖最后由 Sian 于 2015-7-8 17:14 编辑

这是2006年我读大一时的一个批处理文件,那时候的我们不用杀毒软件,不用类似360这种清理工具,只因为把性能都让出来给需要的应用程序:

1、新建一个记事本

2、将以下代码粘贴到记事本
@echo off
echo *****************************************************************************
echo *                                                                           *
echo * Copyright Central South University of Forestr and Technology By Sian v1.0 *
echo *                                                                           *
echo *                                                                   2006.12 *
echo *****************************************************************************
echo. & pause
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 清理系统垃圾完成!
echo. & pause
3、将该文件另存为"一键清理垃圾文件.bat",注意:扩展名一定要的,否则就真的只是个记事本。

4、运行即可



5、Demo下载


页: [1]
查看完整版本: Windows 一键清理垃圾文件