"指定文件"指定什么
@echo off
set #=有问题联系&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$% %z%
set "指定文件=xxx.txt"
set "源文件夹=E:\a"
set "新文件夹=E:\b"
if not exist "%新文件夹%\" md "%新文件夹%\"
cd /d "%源文件夹%"
for /f "delims=" %%a in ('dir /a-d/b/s "%指定文件%"') do (
echo;%%a
copy /y "%%a" "%新文件夹%\"
)
echo;%#% +%$%%$% %z%
pause