有时候需要批量创建自定义名字的txt文件一遍后续写入数据:
@echo off for /f "delims=" %%a in (namelist.txt) do (@echo %%a > %%a.txt)
namelist.txt文件内写好文档的名称,一个名字一行,和bat文件放在同一目录。