制作批处理文件以编写批处理文件

1 batch-file

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

像这样 :

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

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

这有什么解决方案吗?

Ste*_*han 5

你将不得不逃脱特殊的角色:

echo systeminfo ^>^>info.txt >>SystemInfo.bat
Run Code Online (Sandbox Code Playgroud)