通过Windows批处理文件在多行中拆分长命令 [英] Split long commands in multiple lines through Windows batch file

查看:258
本文介绍了通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆