set NextNum=8
setlocal EnableDelayedExpansion
set str_Option=1234567890ABCDEFGHIJK
set /a quit=%NextNum%+3
echo !str_Option:~0,%NextNum%!
echo.&echo. !quit!
choice /c !str_Option:~0,%NextNum%! /m "* Please select a choice from the menu:" /T 120 /d !quit!
但最后一句的 /d !quit! 赋值老是有问题, 请教高手!
[ Last edited by uiopuiop on 2007-10-8 at 10:56 PM ]