手动建立批处理文件清除系统垃圾文件
2008-09-12 14:04:55 来源: 评论:0 点击:
手动建立批处理文件清除系统垃圾文件
首先在本机建立一个文本文件,然后把下面的代码复制到文本文件中,
然后关闭此文件,关闭后重新命名文件名为 filenae.bat ,此时双击此文件可以运行批处理清空系统中垃圾文件,运行后就有提示按任意键退出即可
注意:重命名文件的时候可以另存为.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% ecycled*.*
del /f /s /q %windir%*.bak
del /f /s /q %windir%prefetch*.*
rd /s /q %windir% emp & md %windir% emp
del /f /q %userprofile%cookies*.*
del /f /q %userprofile% ecent*.*
del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"
del /f /s /q "%userprofile%Local SettingsTemp*.*"
del /f /s /q "%userprofile%Local SettingsHistory*.*"
del /f /s /q "%userprofile% ecent*.*"
echo 清除系统垃圾完成!
echo. & pause
相关热词搜索:手动建立批处理文件清除系统垃圾文件
上一篇:如何不用软件实现系统关机时清空页面文件
下一篇:解决卷影复制服务错误调用程序时的意外错误CoCreateInstance

评论排行
- ·Can't connect to Mys...(3)
- ·编码问题(2)
- ·解决卷影复制服务错误调...(2)
- ·同时在多台服务器上运行...(2)
- ·VMware及相关产品序列号大全(1)
- ·解决Service Unavailable的方法(1)
- ·MSSQL数据库备份与还原及...(1)
- ·server application unavailable(1)
- ·邮箱收发服务器(pop3smtp)设置(1)
- ·山东地名总结(1)
- ·CentOS系统用yum命令升级...(1)
- ·西安人人乐买鞋—换鞋记!!(1)
- ·QQ占用CPU内存资源过高解...(1)
- · RHCE备考之路在今天终...(1)
- ·Microsoft.NET Framewor...(1)
- ·XV6700如何使用USB数据线...(1)
- ·滕州小吃(1)
- ·MYSQL出错代码统计(1)
- ·webmin安装使用及远程管...(1)
- ·安装expect(1)