@echo off (for /f "delims=" %%i in ('dir /b /a-d *.txt') do ( for /f "delims=" %%j in ('type "%%i"') do ( echo %%j,%%~ni ) ))>"合并.log" move /y "合并.log" "合并.txt"复制代码