Windows批处理:无回声新行 [英] Windows batch: echo without new line
本文介绍了Windows批处理:无回声新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是Windows批量相当于Linux shell命令的回声-n
这燮$ P $在输出的结束?
What is the Windows batch equivalent of the Linux shell command echo -n
which suppresses the newline at the end of the output?
我们的想法是在一个循环内的同一行写
The idea is to write on the same line inside a loop.
推荐答案
使用设置
和 / P> / code>参数您可以在不换行回应:
Using set
and the /p
parameter you can echo without newline:
C:\> echo Hello World
Hello World
C:\> echo|set /p=Hello World
Hello World
C:\>
<一个href=\"http://www.devtrends.com/index.php/echo-without-carriage-return-or-line-feed-cr-lf/\">Source
这篇关于Windows批处理:无回声新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文