@setlocal
@set TEMPF=TARGTYPE
@set TEMP1=fgdsplist.txt
@echo Find [%TEMPF% in dsp file list %TEMP1%...
@set TEMPOUT=tempfind.txt
@if NOT EXIST %TEMP1% goto ERR1

@echo Start > %TEMPOUT%
@for /F "tokens=*" %%i in (%TEMP1%) do @(call :CHKIT %%i)

@echo END >> %TEMPOUT%

call np %TEMPOUT%

@goto END


:CHKIT
@if "%1x" == "x" goto :EOF
@echo %1
@fa4 "%TEMPF%" -c -w %1 >>%TEMPOUT%
@goto :EOF


:ERR1
@echo ERROR: Can NOT locate file %TEMP1%! Check name, location...
@goto END

:END
@endlocal
