通过 Windows 批处理文件将长命令拆分为多行 [英] Split long commands in multiple lines through Windows batch file
本文介绍了通过 Windows 批处理文件将长命令拆分为多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将长命令拆分为批处理文件中的多行?
How can I split long commands over multiple lines in a batch file?
推荐答案
你可以用脱字符 ^
分隔长行,只要你记住脱字符和它后面的换行符被完全删除.所以,如果应该有一个空格来打破这条线,请包括一个空格.(更多内容见下文.)
You can break up long lines with the caret ^
as long as you remember that the caret and the newline following it are completely removed. So, if there should be a space where you're breaking the line, include a space. (More on that below.)
示例:
copy file1.txt file2.txt
可以写成:
copy file1.txt^
file2.txt
这篇关于通过 Windows 批处理文件将长命令拆分为多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文