@setlocal
@echo Get the HELP text...

@call amlist

@if "%TEMPLIST%x" == "x" goto NOSETUP

@set TEMPOUT=temphelp.txt
@echo Begin HELP >%TEMPOUT%

@set TEMPT=0
@for %%i in (%TEMPLIST%) do @(call :CHKIT %%i)

@echo Done... now to load it in notepad...

@call np %TEMPOUT%

@goto END

:CHKIT
@if "%1x" == "x" goto :EOF
@set TEMPF=%1.pl
@if NOT EXIST %TEMPF% goto :EOF
@echo %TEMPF%
@set /A TEMPC+=1
@echo %TEMPC% %TEMPF% >>%TEMPOUT%
@echo ^<pre class="dos"^>%CD%^>perl %TEMPF% -? >>%TEMPOUT%
@perl %TEMPF% -? >>%TEMPOUT%
@echo ^</pre^> >>%TEMPOUT%
@goto :EOF



:NOSETUP
@echo ERROR: amlist.bat FAILED to create TEMPLIST...
@goto END

:END
@endlocal
