bat中的问题

buyaowen 2007-05-21 03:30:41
现在bat执行中让用户判断是否继续,但是发现choice已经在xp下取消了,请问现在代替的命令是什么?
...全文
89 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ljc007 2007-05-21
  • 打赏
  • 举报
回复
@echo off
echo hello world
echo press "y" to continue press "n" to exit
set /p input=
if %input% equ y (
goto yes
) else (
goto no
)

:yes
echo continue

:no

6,847

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧