wodesitanfu 当前离线
上等兵
@echo off echo Please input your choose(Y/N) set /p choose= if /i %choose%=="Y" goto Y if /i %choose%=="N" goto N :Y echo this is choose 1 pause exit :N echo this is you choose 2 pause exit复制代码
forfiles 当前离线
少将
TOP
乱码 当前离线
一级士官
@echo off set /p choose=Please input your choose(Y/N): if /i "%choose%"=="Y" goto Y if /i "%choose%"=="N" goto N echo choose error pause exit :Y echo this is choose 1 pause exit :N echo this is you choose 2 pause exit复制代码
ht河豚 当前离线
poter 当前离线
二级士官
wudixin96 当前离线
列兵
@echo off if a gtr 0 echo ok if "a" gtr "0" echo ok pause复制代码
CrLf 当前离线
论坛巡查
if 10 lss 9 (echo 10 lss 9) else echo not 10 lss 9 if "10" lss "9" (echo "10" lss "9") else echo not "10" lss "9"复制代码