1

我的问题是“如何在批处理文件中编写批处理文件,运行时会创建新的批处理文件?”

像这样 :

echo systeminfo >>info.txt >>SystemInfo.bat

我不想新的批处理文件(SystemInfo.bat)在运行时创建Info.txt,其中包含系统信息。

有什么解决办法吗?

4

1 回答 1

5

您将不得不转义特殊字符:

echo systeminfo ^>^>info.txt >>SystemInfo.bat
于 2013-06-19T05:36:44.603 回答