Код:

@echo off
set "list=D:\12345678\1.txt"
set "from=D:\12345678"
set "to=D:\12345678\sort"
for /f "usebackq delims=" %%i in ("%list%") do (
for /f "delims=" %%j in ('2^>nul dir/a-d/b "%from%\*.xml"') do (
for /f %%k in ('^<"%from%\%%j" find/i "%%i"') do (
for /f "delims=" %%l in ('2^>nul dir/a-d/b "%from%\%%~nj.*"') do (
if "%%~nl" equ "%%~nj" move/y "%from%\%%l" "%to%\"
)
)
)
)
exit/b
Цитата 053131:
Все эти строки я записал в папку 1.txt »
|
Список сохраните в кодировке
UTF-8.