Код: Выделить всё
dir c:\PATH1 /a:-d /s /b >_temp.txt
for /f %%a in ('type _temp.txt') do (
for /f %%b in ('findstr /m /c:"for" %%a') do (
xcopy %%a c:\PATH2
)
)Код: Выделить всё
dir c:\PATH1 /a:-d /s /b >_temp.txt
for /f %%a in ('type _temp.txt') do (
for /f %%b in ('findstr /m /c:"for" %%a') do (
xcopy %%a c:\PATH2
)
)