长命令拆分为多行Windows Vista中的批处理文件(.bat) [英] Long commands split over multiple lines in Windows Vista batch (.bat) file

查看:268
本文介绍了长命令拆分为多行Windows Vista中的批处理文件(.bat)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使长命令去多行在Windows(Vista)的批处理文件?

How do I make long commands go over multiple lines in a Windows (Vista) 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.exe file1.txt^
 file2.txt

这篇关于长命令拆分为多行Windows Vista中的批处理文件(.bat)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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