多语言展示
当前在线:1170今日阅读:103今日分享:49

批处理教程第二期:[2]制作垃圾清理软件

有了上一篇的初识,今天让我们来做一个垃圾处理软件
工具/原料

 一个新建文本文档

方法/步骤
1

打开文本文档,输入以下内容:@echo off  echo 正在清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log fdel /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 s\*.*   del /f /q %userprofile%\recent\*.*     del /f /s /q '%userprofile%\Local Settings\Temporary InterneFiles\*.*' del /f /s /q '%userprofile%\Local Settings\Temp\*.*' del /f /s /q '%userprofile%\recent\*.*'    sfc /purgecache '清理系统盘无用文件     defrag %systemdrive% -b '优化预读信息   echo 清除系统完成!      pause

2

接着和上次一样,另存为,后缀名为bat。好了!大功告成!不要被文字吓怕了,删除文件删的都是C盘里多复制的文件,不用怕。

3

注:本程序保证安全!如发现损害电脑,为操作不当。

推荐信息