无忧启动论坛

标题: 如何删除默认的上网临时文件夹中的命令啊?(要在不同的机子中都适用) [打印本页]

作者: zytlinux    时间: 2006-9-27 23:16
标题: 如何删除默认的上网临时文件夹中的命令啊?(要在不同的机子中都适用)
同题
作者: dgxhls    时间: 2006-9-28 00:14
原帖由 zytlinux 于 2006-9-27 11:16 PM 发表
同题


自己搞个批处理,把下列内容用记事本另存为.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

[ 本帖最后由 打狗协会理事 于 2006-9-28 12:15 AM 编辑 ]




欢迎光临 无忧启动论坛 (http://wuyou.net/) Powered by Discuz! X3.3