如何在新行上回答“Set / p choice”命令?(How to answer the “Set /p choice” command on new line?)

系统教程 行业动态 更新时间:2024-06-14 16:57:17
如何在新行上回答“Set / p choice”命令?(How to answer the “Set /p choice” command on new line?)

码:

@set /p choice= How are you?(answer is here) @echo %choice%? @pause

期望的输出:

@set /p choice= How are you? (answer here) @echo %choice%? @pause

Code:

@set /p choice= How are you?(answer is here) @echo %choice%? @pause

Desired Output:

@set /p choice= How are you? (answer here) @echo %choice%? @pause

最满意答案

是的,这很容易:

@echo off echo How are you? set /p "choice=" echo %choice%? pause

Yes, this is very easy possible:

@echo off echo How are you? set /p "choice=" echo %choice%? pause

更多推荐

本文发布于:2023-04-12 20:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/ba6effdf30104b1856d1ea267f343e06.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   如何在   Set   choice   新行上

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!