dir c:\*.txt /s >d:\List_C.txt
@echo offmd d:\mytxtfor %%a in (c) do ( call :AllCopy %%a):AllCopyfor /r %1:\ %%i in (*.txt) do copy %%i d:\mytxt
一楼正解