将本目录下的txt合并bat
将本目录下的txt文件中的内容都移动到一个新的txt文本里面 mergeTxt.bat
@echo off set outputFile=merged.txt del %outputFile% for %%f in (*.txt) do ( type "%%f" >> %outputFile% echo.>>%outputFile% echo.>>%outputFile% echo ____________________________________________________________>>%outputFile% )
在每个文件结尾添加空行和下划线行
echo.>>%outputFile% echo.>>%outputFile% echo ____________________________________________________________>>%outputFile%
翻译
搜索
复制
<iframe height="240" width="320"></iframe> 标签:bat,%%,echo,outputFile%,txt,目录 From: https://www.cnblogs.com/s313139232/p/18277429