1、生成中文到文本文件aa.txt
@echo off
chcp 65001echo 国家队 >G:\shengcheng\aa.txt
说明:a、中文可能会乱码,需要加上chcp 65001
b、echo 文本内容 >路径+文件名称
2、生成连续换行的内容到文本文件aa.txt
@echo off
chcp 65001(echo 国家队 &echo 高级技术人员) >G:\shengcheng\aa.txt
说明 :a、中文可能会乱码,需要加上chcp 65001
b、(echo 第一行文本内容 &echo 第二行文本内容) >路径+文件名称
c、换行使用&echo连接
d、生成的文本内容需要在括号里面
3、需要生成特殊符号的内容到文本文件aa.txt
@echo off
chcp 65001(echo ^<body^> &echo ^<^/body^>) >G:\shengcheng\aa.txt
说明:特殊符号需要在前面使用^符号