echo hello world
echo please enter y/n:
set /p flag=
::echo %flag%
if /i %flag% == y (echo “y”)^
else (echo “stop the procedure!”)
本文介绍了一个基础的编程示例,通过Echo命令展示用户输入,并使用if-else语句实现条件判断,停止或继续程序流程。
echo hello world
echo please enter y/n:
set /p flag=
::echo %flag%
if /i %flag% == y (echo “y”)^
else (echo “stop the procedure!”)
4710
2137
1450

被折叠的 条评论
为什么被折叠?
