clean.bat引起的iis权限问题
星期三, 04月 30th, 2008clean.bat文件确实很不错,可以dos下直接清理临时文件,但也会带来一些麻烦。
如:iis错误,数据库不能访问,Microsoft JET Database Engine 错误 '80004005',Microsoft VBScript 编译器错误 错误 '800a03f6'
@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 ... 阅读全文...