:cho
set choice=
set /p choice= 请选择:
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1%
if /i "%choice%"=="1" goto 1
if /i "%choice%"=="2" goto 2
if /i "%choice%"=="3" goto 3
if /i "%choice%"=="4" goto 4
if /i "%choice%"=="5" goto 5
if /i "%choice%"=="6" goto 6
if /i "%choice%"=="7" goto 7
if /i "%choice%"=="8" goto 8
if /i "%choice%"=="9" goto 9
if /i "%choice%"=="10" goto 10
echo 选择无效,请重新输入
echo.
pause>nul
goto 1
:1
@echo off
cls
color 04E
echo -------------------------------------------------
echo 欢迎使用垃圾清理工具 奶瓶专用版
:cho
set choice=
set /p choice= 请选择:
IF NOT "%Choice%"=="10" SET Choice=%Choice:~0,10%
if /i "%choice%"=="1" goto 1
if /i "%choice%"=="2" goto 2
if /i "%choice%"=="3" goto 3
if /i "%choice%"=="4" goto 4
if /i "%choice%"=="5" goto 5
if /i "%choice%"=="6" goto 6
if /i "%choice%"=="7" goto 7
if /i "%choice%"=="8" goto 8
if /i "%choice%"=="9" goto 9
echo 选择无效,请重新输入
echo.
pause>nul
goto cho
:1
@echo off
cls
color 04E
@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 /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo ---------------------------------------------------
echo 清除系统LJ完成!垃圾已吃饱欢迎下次使用!
echo ---------------------------------------------------
echo 请按回车键
pause>nul
goto cho
----------------------------------
echo 选择无效,请重新输入
echo.
pause>nul
goto cho
--------------------------------------
我要故意输入错误的话这句话更本就没用了,比如我输入10,直接就消失了。
5555我笨,不好意思。作者: wudixin96 时间: 2007-6-10 13:59 IF NOT "%Choice%"=="10" SET Choice=%Choice:~0,10%
这句有必要吗?