- 帖子
- 14
- 积分
- 24
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2018-11-12
|
使用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) |
|