@setlocal
@set TEMPLOG=templog.txt
@set TEMPC=0
@echo Begin list %DATE% %TIME% >%TEMPLOG%
@for /F "tokens=*" %%i in (aclist.txt) do @(call :CHKIT %%i)
@echo Done %TEMPC% files...

@goto END

:CHKIT
@if "%1x" == "x" goto :EOF
@set TEMPF=%1
@if NOT EXIST %TEMPF% goto NOFILE
@set /A TEMPC+=1
@echo %TEMPC% %TEMPF%
@echo %TEMPC% %TEMPF% >>%TEMPLOG%
@fa4 "include" -c %TEMPF% >>%TEMPLOG%
@goto :EOF

:NOFILE
@echo NOT FOUND %TEMPF%


:END
@endlocal

