刚开始学习批处理
这个简单的脚本为什么每次都跳到First.
懂得的朋友帮忙解释一下,谢谢了
还有,能介绍一下choice返回值的方式吗
@echo off
:start
choice /C:FSTO /M "First,Second,Third,Out"
if errorlevel 1 goto First
if errorlevel 2 goto Second
if errorlevel 3 goto Third
if errorlevel 4 goto end
:First
echo This is the first line.
goto start
:Second
echo This is the Second line.
goto start
:Third
echo This is the Third line.
goto start
:end
echo bye!