请问下高手为什么这个批处理输入YES或NO 返回的都是NO
@echooff:startecho输入YES\NOset/pchoice=if"%choice%"=="yes"gotoyegotone:ye@echo"输入了YES"...
@echo off
:start
echo 输入YES\NO
set /p choice =
if "%choice%" =="yes" goto ye
goto ne
:ye
@echo "输入了YES"
goto start
:ne
@echo "输入了NO" goto start 展开
:start
echo 输入YES\NO
set /p choice =
if "%choice%" =="yes" goto ye
goto ne
:ye
@echo "输入了YES"
goto start
:ne
@echo "输入了NO" goto start 展开
2013-05-06
展开全部
@echo off
:start
echo 输入YES或NO
set choice=&set /p "choice="
if /i "%choice%"=="yes" goto ye
goto ne
:ye
echo "输入了YES"
goto start
:ne
echo "输入了NO"
goto start
:start
echo 输入YES或NO
set choice=&set /p "choice="
if /i "%choice%"=="yes" goto ye
goto ne
:ye
echo "输入了YES"
goto start
:ne
echo "输入了NO"
goto start
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询