[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
使用choice命令不是更好吗?

choice /c 012345rsq
if %errorlevel%==9 (goto :end)
if %errorlevel%==8 (goto :s)
if %errorlevel%==7 (goto :r)
if %errorlevel%==6 (goto :5)
if %errorlevel%==5 (goto :4)
if %errorlevel%==4 (goto :3)
if %errorlevel%==3 (goto :2)
if %errorlevel%==2 (goto :1)
if %errorlevel%==1 (goto :0)

TOP

返回列表