以下是一个在网上搜索就能出来一堆的批处理,可以说是广为流传,咋一用起来也很方便,比什么上网助手之流方便多了,只用轻轻点一下鼠标,一切搞定,还能弹出很酷的黑色界面,我想很多网友也乐于此道吧!
@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 /q %userprofile%\*.*
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
仔细看这段代码有什么问题,一定要仔细看看异同点!
其实这段代码是没有任何错误的,顺利执行。
我不知道,是作者特意这么做,还是有人恶搞,
看这句 rd /s /q %windir%\temp & md %windir%\temp
问题就在此处,如果此批护理在 iis服务器,asp.net(其他web服务没有试验过)程序执行,你会发现所有页面都不能成功显示,而且显示的错误是framework目录下temp中随机文件写失败(而不是windir temp目录拒绝访问 汗。。。),这个问题不知道让多少人无限郁闷,重装程序,重装iis, 重做系统,重格硬盘,。。。。。,终于有为仁兄发现了这个问题,公布于世,才上我得以解脱,解救了天涯沦落人!
仅以此列,警示各位,程序需要严谨,让那些恶搞得人去死吧!
说了这么多,我想大家该知道,这个问题出在那里了吧?
@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 /q %userprofile%\*.*
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
仔细看这段代码有什么问题,一定要仔细看看异同点!
其实这段代码是没有任何错误的,顺利执行。
我不知道,是作者特意这么做,还是有人恶搞,
看这句 rd /s /q %windir%\temp & md %windir%\temp
问题就在此处,如果此批护理在 iis服务器,asp.net(其他web服务没有试验过)程序执行,你会发现所有页面都不能成功显示,而且显示的错误是framework目录下temp中随机文件写失败(而不是windir temp目录拒绝访问 汗。。。),这个问题不知道让多少人无限郁闷,重装程序,重装iis, 重做系统,重格硬盘,。。。。。,终于有为仁兄发现了这个问题,公布于世,才上我得以解脱,解救了天涯沦落人!
仅以此列,警示各位,程序需要严谨,让那些恶搞得人去死吧!
说了这么多,我想大家该知道,这个问题出在那里了吧?
