打印

[求助] 寻找一键清理垃圾的小方法

0
我这里也有一个,跟2楼兄弟的差不多!只是比2楼兄弟的多了一些清理desktop.ini文件,使用方法与2楼一样!
cho 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\*.*"
  
attrib -R -A -S -H D:\autorun.inf
del D:\autorun.inf/q
attrib -R -A -S -H E:\autorun.inf
del E:\autorun.inf/q
attrib -R -A -S -H F:\autorun.inf
del F:\autorun.inf/q
attrib -R -A -S -H H:\autorun.inf
del H:\autorun.inf/q
attrib -R -A -S -H I:\autorun.inf
del I:\autorun.inf/q
attrib -R -A -S -H D:\sxs.exe
del D:\sxs.exe/q
attrib -R -A -S -H E:\sxs.exe
del E:\sxs.exe/q
attrib -R -A -S -H F:\sxs.exe
del F:\sxs.exe/q
attrib -R -A -S -H H:\sxs.exe
del H:\sxs.exe/q
attrib -R -A -S -H I:\sxs.exe
del I:\sxs.exe/q
attrib -R -A -S -H D:\_desktop.ini
del D:\_desktop.ini/q
attrib -R -A -S -H E:\_desktop.ini
del E:\_desktop.ini/q
attrib -R -A -S -H F:\_desktop.ini
del F:\_desktop.ini/q
attrib -R -A -S -H H:\_desktop.ini
del H:\_desktop.ini/q
attrib -R -A -S -H I:\_desktop.ini
del I:\_desktop.ini/q

[ 本帖最后由 ColOr. 于 2008-7-19 09:52 编辑 ]

TOP

当前时区 GMT+8, 现在时间是 2025-3-24 03:05