Fetch file of special extension

@echo off & setlocal EnableDelayedExpansion
FOR /f %%h in (d:\Extension.txt) do (
set a2=%%h
for /f %%j in (d:\ITEM.txt) do (
set a1=%%j
D:
cd D:\OREILLY\ENGINEERING\Department

for /R /D %%d in (*) do (
if exist "%%d\*!a1!*.!a2!" call :get "%%d"
                        )
                               )
                                    )
goto :eof

:get
xcopy "%~f1\*!a1!*.!a2!" D:\oreilly\RAD\0704\"!a1!"\"%~nx1\" /y
goto :eof

 

 

remark:

extension.txt,item.txt is the special file that program use.

你可能感兴趣的:(File,special,160,a2)