et stop iisadmin /y
rem (如果该组件被iis引用)
regsvr32 /u /s %windir%/system32/msvcp60.dll
copy msvcp60.dll %windir%/system32
regsvr32 /s %windir%/system32/msvcp60.dll
net start w3svc
rem (启动iis的命令,如果该组件被iis引用)
@echo off
:start
cls
color 1f
echo.
ECHO Windows 垃圾清除助手
echo.
ECHO 三才系统团队制作(David Wu)
ECHO ====================================
ECHO 1.删除所有tmp临时文件(log文件)
ECHO 2.删除历史记录
ECHO 3.删除我最近打开的文档列表
ECHO 4.删除internet临时文件
ECHO 5.删除cookies
ECHO ------------------------------------
ECHO Q. 放弃并退出
echo.
SET Choice=
SET /P Choice= 请选择要进行的操作(1/2/3/4/5/Q),然后按回车:
ECHO.
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
IF /I '%Choice%'=='1' GOTO Deltemp
IF /I '%Choice%'=='2' GOTO Delhistory
IF /I '%Choice%'=='3' GOTO DelRectFile
IF /I '%Choice%'=='4' GOTO DelIntelnetTemp
IF /I '%Choice%'=='5' GOTO DelCookies
:Deltemp
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 %systemdrive%/recycled/*.*
goto end
:Delhistory
del /f /s /q %windir%/*.bak
del /f /s /q %windir%/prefetch/*.*
rd /s /q %windir%/temp & md %windir%/temp
goto end
:DelRectFile
del /f /q %userprofile%/recent/*.*
goto end
:DelIntelnetTemp
del /f /s /q "%userprofile%/Local Settings/Temporary Internet Files/*.*"
del /f /s /q "%userprofile%/Local Settings/Temp/*.*"
goto end
:DelCookies
del /f /q %userprofile%/cookies/*.*
goto end
:end
ECHO 清除完成........
pause
exit