晒几个BAT(服务与清理垃圾)

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值