set DestPath=.
for /f "delims=" %%i in ('dir /ad /b ' ) do (
copy %DestPath%\%%i\*.txt %DestPath%\%%i\merge.txt
)
合并子目录所有文本文件的批处理
最新推荐文章于 2024-07-08 17:20:19 发布
set DestPath=.
for /f "delims=" %%i in ('dir /ad /b ' ) do (
copy %DestPath%\%%i\*.txt %DestPath%\%%i\merge.txt
)