@echo off
::添加文件路径
set file=1.txt 2.txt
::查找的文件夹名字
set str=abc
set disk=c d e f g h i j k l m n o p q r s t u v w x y z
for %%a in (%disk%) do (
if exist %%a: (
echo %%a:
for /f "delims=" %%b in ('dir /ad/b/s %%a:\"%str%"') do (
for %%c in (%file%) do (
echo copy /y %%c %%b
)
)
)
)
echo end...
pause