清除系统垃圾??
来源:百度知道 编辑:UC知道 时间:2024/05/23 00:06:27
@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 清除系统
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 清除系统
什么啊,这些是PC命令(也就是command命令),在记事本中形成批处理,运行后,就像在命令提示符中输入该命令一样
不知道就到命令提示符中写帮助(注意命令没有大小写之分):
开始-运行输入cmd,就能进入命令提示符
再输入”rd /?“(没引号,注意空格)就能知道rd是什么意思了,同样后面的/f,/s,/q参数也有解释
同样del 和其参数在cmd中也能找到解释
至于%systemdrive%的%吗,代表根目录意思若你的系统在C盘
"%userprofile%\Local Settings\Temporary Internet Files\*.*" 指的意思是C:\Documents and Settings\Administrator(这指的是user,若你的用户名是lk,那adminidtrator就换为lk)\Local Settings\Temporary Internet Files
对于*一般省略的意思,同语文的……,
*.tmp可代表1.tmp、2.tmp、3.tmp……,只要文件后加了扩展名.tmp就指*.tmp
我只知道这是什么批处理。