|
以前写的一个测试程序
cls
@echo off
echo ******************************************************
echo * Select OS to install *
echo ******************************************************
echo.
echo To Build an ME Give Away ...press A
echo.
echo To Build an CMAR ...........press B
echo.
echo To Build an XP Give Away ...press C
echo.
echo To Build an Garage Sale
echo XP Home ..........press D
echo XP PRO ...........press E
echo.
echo To exit this program .......press X
echo.
echo.
choice /c:abcdex /t:d,20 TYPE THE LETTER AND PRESS ENTER:
if errorlevel 6 goto exit
if errorlevel 5 GOTO xpp
if errorlevel 4 GOTO xph
if errorlevel 3 GOTO xpga
if errorlevel 2 GOTO cmar
if errorlevel 1 GOTO mega
goto end
:mega
echo run mega
goto end
:cmar
echo run cmar
goto end
:xpga
echo run xpga
goto end
:xph
echo run xph
goto end
:xpp
echo run xpp
goto end
:exit
echo run exit
goto end
:end |
|