【问题标题】:How to create a batch file that creates a batch file that creates a batch file如何创建批处理文件创建批处理文件创建批处理文件
【发布时间】:2013-07-30 14:11:18
【问题描述】:

我想创建一个名为 test1 的批处理文件,该文件创建一个名为 test2 的批处理文件,该批处理文件创建一个名为 test3 的批处理文件 我做了这个:

@ECHO OFF
ECHO ECHO > test3.bat > test2.bat

但它不起作用。 有什么帮助吗?

【问题讨论】:

    标签: batch-file


    【解决方案1】:

    您必须使用插入符号 ^ 转义特殊字符,例如 >

    echo echo echo hello ^>t3.bat >t2.bat
    type t2.bat
    call t2.bat
    type t3.bat
    call t3.bat
    

    【讨论】:

      猜你喜欢
      • 2013-08-31
      • 2013-09-25
      • 1970-01-01
      • 1970-01-01
      • 2012-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-21
      相关资源
      最近更新 更多