自己google到的,费老鼻子劲了,留个底备查。 REM enumerate dir to merge configuration files and copy files for /d %%f in ("K:/Test/*") do ( echo "processing %%f..." REM get the version path. if exist "%%f/Path.txt" ( FOR /F "eol=; tokens=1 delims=,- " %%i in (%%f/Path.txt) do ( echo %%i xcopy /E/i/y "%%f/*.*" "%%i" ) ) )