choice /c 12340 /m "请选择需要启动的程序代号:"
if errorlevel 5 goto end
if errorlevel 4 goto qq2
if errorlevel 3 goto myie
if errorlevel 2 goto bt
if errorlevel 1 goto qq1
:qq2
start D:\Progra~1\Tencent\qq1\CoralQQ.exe
:myie
start D:\Maxthon\Maxthon.exe
:bt
start D:\Progra~1\BitComet\BitComet.exe
:qq1
start D:\Progra~1\Tencent\qq\CoralQQ.exe
:end
exit
[ Last edited by cjw114 on 2005-11-12 at 00:34 ]作者: GOTOmsdos 时间: 2005-11-7 20:43 choice
但要用返回码识别的作者: 220110 时间: 2005-11-7 21:24 请查对你的XP中有没有CHOICE.COM 。作者: cjw114 时间: 2005-11-7 21:28 没有哦,怎么办?哪里有呢?作者: 220110 时间: 2005-11-7 21:34 http://www.cn-dos.net/forum/view ... mp;highlight=choice
:INPUT
set /p In=请选择需要启动的程序代号:
set In=%In:~0,1%
if #%In% ==#4 goto QQ2
if #%In% ==#3 goto MYIE
if #%In% == #2 goto BT
if #%In% == #1 goto QQ1
if #%In% == #0 goto END
echo 输入了错误参数.请重试.
goto INPUT