CHOOSE.BAT  ·  BAT  ·  1.3 KB  ·  1987-04-14  ·  from PCPlus_Issue-11_Aug-1987
ECHO OFF
CLS
ECHO             WRITING FRIENDLY BATCH FILES
ECHO.
ECHO This short batch file has been written to demonstrate how
ECHO you can make your batch files more friendly by using the 
ECHO program CHOICE.COM, which you will find on this disk.
ECHO.
ECHO The program was submitted to PC PLUS by STEPHEN ADAMS, and
ECHO first printed in our April issue with instructions on how
ECHO to create it using the DEBUG utility. You don't have to go
ECHO through this process though, as a working copy of CHOICE.COM
ECHO is yours for the using on this disk.
ECHO.
pause
:START
CLS
ECHO You can examine the details of this batch file as you wish,
ECHO either on screen or on paper:
ECHO.
ECHO.
ECHO                    Press [p] to print it out
ECHO                    Press [s] to display it on screen
ECHO                    Press [x] to leave this program
ECHO.
choice psx
if errorlevel 3 goto EXIT
if errorlevel 2 goto SCREEN
rem otherwise 1 is assumed
ECHO.
ECHO Make sure your printer is powered up and on-line.
ECHO.
pause
copy choose.bat lpt1 >nul
goto START
:SCREEN
ECHO If you wish to pause the display use [Ctrl] [s],
ECHO continue by pressing any key.
ECHO.
pause
ECHO.
type choose.bat
ECHO.
pause
goto START
:EXIT