首页 > Other > 系统垃圾自动清理脚本

系统垃圾自动清理脚本

2006年10月25日

[code]' 技术中国 http://www.mstc.com.cn/
' Made by 付林.
' 系统垃圾清理脚本
' ***********************************************
strComputer = "."
Set objShell = CreateObject ("Wscript.Shell")
objShell.Run("%comspec% /c del /f /s /q %systemdrive%*.tmp"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %systemdrive%*._mp"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %systemdrive%*.log"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %systemdrive%*.gid"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %systemdrive%*.chk"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %systemdrive%*.old"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %systemdrive%recycled*.*"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %windir%prefetch*.*"),1 ,TRUE
objShell.Run("%comspec% /c rd /s /q %windir%temp & md %windir%temp"),1 ,TRUE
objShell.Run("%comspec% /c del /f /q %userprofile%cookies*.*"),1 ,TRUE
objShell.Run("%comspec% /c del /f /q %userprofile%recent*.*"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %userprofile%Local SettingsTemporary Internet Files*.*"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %userprofile%Local SettingsTemp*.*"),1 ,TRUE
objShell.Run("%comspec% /c del /f /s /q %userprofile%recent*.*"),1 ,TRUE
if err = 0 then
Wscript.echo " 系统垃圾清理成功!By 碎片 "
end if
[/code]





声明  :  转载请注明出处: 碎片IT资讯





作者: 碎片 分类: Other 标签:
  1. 特洛伊
    2007年2月12日14:45 | #1

    是保存成bat吗

  2. 碎片
    2007年2月12日23:11 | #2

    扩展名为vbs

  1. 本文目前尚无任何 trackbacks 和 pingbacks.