|
|
封装报毒.不如看原代码了.
@echo off
mode con cols=40 lines=25
title WINPEBAT_V1.2_beta
color 17
:Start
mode con cols=40 lines=25
color 17
cls
echo ┌──────────┐
echo 丨 WINPEBAT 丨
echo 丨 强大的WinPE批处理丨
echo 丨=================== 丨
echo 丨 TanGom 制作 丨
echo └──────────┘
echo.
echo 1 - 清理WinPE系统垃圾
echo 2 - 重启explorer进程
echo 3 - 屏幕坏点检测
echo S - 快速关机
echo R - 快速重启
echo E - 退出
echo.
echo.
echo H - 帮助
echo.
echo 注意:本程序可能会被杀毒软件误报病毒,请放行及允许,否则快速关机和快速重启功能将不可用!
echo.
set choice=
set /p choice=请输入[序号+回车]:
if /i '%choice%'=='1' Goto Start1
if /i '%choice%'=='2' Goto Start2
if /i '%choice%'=='3' Goto CCD
if /i '%choice%'=='E' Goto end
if /i '%choice%'=='H' Goto Help
if /i '%choice%'=='S' Goto Shut
if /i '%choice%'=='R' Goto Rest
Goto Start
:Help
cls
echo 您好!感谢使用 WINPEBAT
echo 版本:V1.2 Beta 20110207
echo.
echo 所有功能均在作者机子上测试通过,但由于不
echo 定因素,不能保证所有用户都能正常使用!如
echo 果出现问题,请恕作者不负任何责任!
echo 网址:http://blog.sina.com.cn/u/1789910791
echo 注意:本程序可能会被杀毒软件误报病毒,请放行及允许,否则快速关机和快速重启功能将不可用!
pause
Goto Start
:end
exit
:Start1
title WinPE 垃圾清理大师
cls
echo 正在清理系统盘中的垃圾文件...
del /f /s /q %systemdrive%\*.log 2>nul
del /f /s /q %systemdrive%\*.bak 2>nul
del /f /s /q %systemdrive%\*.chk 2>nul
del /f /s /q %systemdrive%\*.tmp 2>nul
del /f /s /q %systemdrive%\*._mp 2>nul
del /f /s /q %systemdrive%\*.ftg 2>nul
del /f /s /q %systemdrive%\*.gid 2>nul
del /f /s /q %systemdrive%\*.pnf 2>nul
del /f /s /q %systemdrive%\thumbs.db 2>nul
rd /s /q %windir%\temp md %windir%\temp 2>nul
del /f /s /q %systemdrive%\recycled\*.* 2>nul
del /f /s /q %windir%\prefetch\*.* 2>nul
del /f /q %userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.* 2>nul
del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" 2>nul
rd /s /q %temp% md %temp% 2>nul
cls
D:
cd\
echo 正在清理其他盘中的垃圾文件...
del /f /s /q *.log 2>nul
del /f /s /q *.tmp 2>nul
del /f /s /q thumbs.db 2>nul
E:
cd\
echo 请稍等......
del /f /s /q *.log 2>nul
del /f /s /q *.tmp 2>nul
del /f /s /q thumbs.db 2>nul
F:
cd\
del /f /s /q *.log 2>nul
del /f /s /q *.tmp 2>nul
del /f /s /q thumbs.db 2>nul
G:
cd\
del /f /s /q *.log 2>nul
del /f /s /q *.tmp 2>nul
del /f /s /q thumbs.db 2>nul
H:
cd\
del /f /s /q *.log 2>nul
del /f /s /q *.tmp 2>nul
del /f /s /q thumbs.db 2>nul
X:
cd\
del /f /s /q *.log 2>nul
del /f /s /q *.tmp 2>nul
del /f /s /q thumbs.db 2>nul
Y:
cd\
del /f /s /q *.log 2>nul
del /f /s /q *.tmp 2>nul
del /f /s /q thumbs.db 2>nul
Z:
cd\
del /f /s /q *.log 2>nul
del /f /s /q *.tmp 2>nul
del /f /s /q thumbs.db 2>nul
cls
echo 垃圾文件清理完成!
pause
Goto Start
:Start2
title 重启Explorer进程
cls
echo.
echo Explorer进程重启中,请勿关闭本程序...
taskkill /f /im Explorer.exe >nul 2>nul
ping localhost -n 3 >nul 2>nul
start "explorer.exe" "%windir%\explorer.exe"
Goto Start
:Shut
cls
echo 快速关机,确定吗?(Y表示确定,N表示取消)
set choice=
set /p choice=请输入[序号+回车]:
if /i '%choice%'=='Y' Goto Shut1
if /i '%choice%'=='N' Goto Start
Goto Shut
:Shut1
cls
echo 正在关机,请稍候...
cd %temp%
S.exe
:Rest
cls
echo 快速重启,确定吗?(Y表示确定,N表示取消)
set choice=
set /p choice=请输入[序号+回车]:
if /i '%choice%'=='Y' Goto Rest1
if /i '%choice%'=='N' Goto Start
Goto Rest
:Rest1
cd %temp%
R.exe
:CCD
cls
title 屏幕坏点检测工具
echo 简易的屏幕坏点检测工具,用于检测屏幕坏点。对于屏幕边缘的很细很细的坏点,一般可以忽略。
echo 要开始吗?
pause
echo 开始测试
echo 测试方法:将本程序在屏幕内拖动,检测坏点。
mode con cols=2048 lines=2048
echo 蓝色
pause
color 07
echo 黑色
pause
color 27
echo 绿色
pause
color 47
echo 红色
pause
color 67
echo **
pause
color 87
echo 灰色
pause
echo 测试完成!
pause
Goto Start
RS.rar
(3.56 KB, 下载次数: 16)
楼主辛勤劳动.加你分.
[ 本帖最后由 66369 于 2011-2-8 21:36 编辑 ] |
|