定界符为Windows批? [英] heredoc for Windows batch?
本文介绍了定界符为Windows批?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有类似UNIX外壳定界符的方式指定批量多行字符串的方法。类似的东西:
Is there a way of specifying multiline strings in batch in a way similar to heredoc in unix shells. Something similar to:
cat <<EOF > out.txt
bla
bla
..
EOF
我们的想法是从一个模板文件创建自定义的文件。
The idea is to create a customized file from a template file..
推荐答案
不受限制,只要我知道了。
Not as far as I know.
我知道最近是
> out.txt (
@echo.bla
@echo.bla
...
)
( @
prevents命令shell本身从印刷它的运行的命令,而回声。
允许你开始与一个空间中的线。)
(@
prevents the command shell itself from printing the commands it's running, and echo.
allows you to start a line with a space.)
这篇关于定界符为Windows批?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文