我在公司找到下面一组代码,但不知如果用了是否对自家电脑有伤害,请高人指点!!!
来源:百度知道 编辑:UC知道 时间:2024/05/30 02:16:49
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
注:复制以上内容→新建 "文本文档"→粘贴以上内容→另存为(保存桌面上)→保存类型选"所有文件"→文件名:"清理系统垃圾.bat"→确定
这样就会发
清理系统垃圾的,好东西
这个对电脑没有危害的
呵呵 是一个绿色的 批处理文件。
目的是删除电脑垃圾。
建议 每周运行一次 呵呵 电脑一定会健步如飞
del /f /s /q %systemdrive%\*.tmp //删除系统盘(一般是C)下所有后缀为.tmp的文件
del /f /s /q %systemdrive%\*._mp //类似的的,删除所有._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 //删除.bak (.bak一般是备份文件,)
del /f /s /q %windir%\prefetch\*.* //这个文件夹主要是系统和应用程序预读取产生的文件,功能是加快已经运行过的程序再次打开速度,对系统没有影响。
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.* //清cookies
del /f /q %userprofile%\recent\*.* //清最近打开文件记录
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" //清IE缓存
del /f /s /q "%userprofile%\Local Settings\Temp\*.*" //<