Batch file 如何创建创建批处理文件的批处理文件创建批处理文件的批处理文件

Batch file 如何创建创建批处理文件的批处理文件创建批处理文件的批处理文件,batch-file,Batch File,我想创建一个名为test1的批处理文件,该批处理文件创建一个名为test2的批处理文件,该批处理文件创建一个名为test3的批处理文件 我做了这个: @ECHO OFF ECHO ECHO > test3.bat > test2.bat 但它不起作用。 有什么帮助吗?您必须用插入符号^ echo echo echo hello ^>t3.bat >t2.bat type t2.bat call t2.bat type t3.bat call t3.bat 不寻常的要求

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

@ECHO OFF
ECHO ECHO > test3.bat > test2.bat
但它不起作用。
有什么帮助吗?

您必须用插入符号
^

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

不寻常的要求。听起来像是家庭作业。。。bacth文件必须不同吗?它们应该包含什么?