
批處理choice命令可以選擇十個數(shù)嗎
這個選擇1-9都正常,但是選擇0的時候并沒有退出nclick="copycode($('code0'));">復(fù)制代碼
- choice /c:1234567890 /n /m 請按鍵1、2、3、4、5、6、7、8、9、0 選擇功能
- if %errorlevel%==1 goto test1
- if %errorlevel%==2 goto test2
- if %errorlevel%==3 goto test3
- if %errorlevel%==4 goto test4
- if %errorlevel%==5 goto test5
- if %errorlevel%==6 goto test6
- if %errorlevel%==7 goto test7
- if %errorlevel%==8 goto test8
- if %errorlevel%==9 goto test9
- if %errorlevel%==0 goto et
- 中間省略了
- :et
- exit

