批次檔選單製作
google搜尋的範例稍做修改。
@ECHO OFF
:Start
CLS
ECHO Choice windows version...
ECHO 1 - 32 bits
ECHO 2 - 64 bits
ECHO 3 - Exit
SET /P OPT=Please make a selection, and press enter:
if %OPT%==1 GOTO OPTION1
if %OPT%==2 GOTO OPTION2
if %OPT%==3 GOTO EXIT
GOTO Start
:OPTION1
ECHO You choose "32 bits"
GOTO EXIT
:OPTION2
ECHO You choose "64 bits'
GOTO EXIT
:EXIT
pause
沒有留言:
張貼留言