Metropoli BBS
VIEWER: diaginfo.bat MODE: TEXT (ASCII)
echo off
REM %%VER EtherLink II Diagnostic Information Program v2.0c
if %mono%.==y. goto b&w
..\install\flushkey
..\install\check videocard
if errorlevel 1 goto color
:b&w
cls
goto contin
:color
..\install\get b 31
:contin
type diaginfo.men
..\install\echoxy 18 18 Select Option:
..\install\reply
if errorlevel 60 goto inval
if errorlevel 53 goto inval
if errorlevel 52 goto main
if errorlevel 51 goto submen
if errorlevel 50 goto trouble
if errorlevel 49 goto instruct
if errorlevel 28 goto inval
if errorlevel 27 goto main

:inval
..\install\echoxy 20 17  **** Invalid key, try again. ****
echo 
echo 
echo.
diaginfo

:main
cd..
menu

:submen
diag

:instruct
set txt=instruct.txt
goto print

:trouble
set txt=trouble.txt

:print
..\install\echoxy 23 2
echo.
type ..\blank.men
..\install\echoxy 4 18 D I A G N O S T I C   I N F O R M A T I O N   M E N U
if %txt% == instruct.txt ..\install\echoxy 6 22 	Program Instructions
if %txt% == trouble.txt ..\install\echoxy 6 22  Troubleshooting 
..\install\echoxy 10 18 1. Print to LPT1
..\install\echoxy 11 21 LPT1 can be a local printer or a redirected    
..\install\echoxy 12 21 network printer.
..\install\echoxy 14 18 2. Print to COM1
..\install\echoxy 15 21 Select option 2 only if you have a COM serial printer
..\install\echoxy 16 21 attached to your computer.
..\install\echoxy 18 18 3. Display Text File on Screen
..\install\echoxy 20 21 Select Option:
..\install\reply
if errorlevel 52 goto inval
if errorlevel 51 goto disp
if errorlevel 50 goto comprt
if errorlevel 49 goto lineprt
if errorlevel 28 goto inval
if errorlevel 27 goto infomen
if errorlevel 13 goto inval

:disp
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
copy %txt% temp > nul
..\install\more < temp
pause
del temp > nul
diaginfo

:lineprt
..\install\get P
if not errorlevel 1 goto prterror
copy %txt% lpt1 > nul

:prtdone
..\install\echoxy 17 21                                                       
..\install\echoxy 20 21                                                       
..\install\echoxy 18 15 The text file has been printed.       
..\install\echoxy 19 15
pause
goto print

:prterror 
..\install\echoxy 17 21                                                       
..\install\echoxy 20 21                                                       
..\install\echoxy 18 15 *** Printing Error:  Unable to Locate Printer! *** 
..\install\echoxy 19 15
pause
goto print 

:comprt
copy %txt% Com1:
goto print

:infomen
diaginfo



[ RETURN TO DIRECTORY ]