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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章