choice /c YNC /m "Are you sure?"

if %errorlevel%==1 goto Y

if %errorlevel%==2 goto N

if %errorlevel%==3 goto C

:Y

echo Y

:N

echo N

:C

echo C

注意:/c 后面的选项,在 %errorlevel% 中分别对应1 2 3 .....

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-06-08
  • 2021-12-04
  • 2021-10-03
  • 2021-12-10
猜你喜欢
  • 2021-11-19
  • 2021-08-14
  • 2021-11-25
  • 2022-01-09
  • 2022-01-11
相关资源
相似解决方案