home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- CLS
- IF %1X == X GOTO DEFPRN
- IF %1 == PRN GOTO PRN
- IF %1 == prn GOTO PRN
- IF %1 == LPT1 GOTO PRN
- IF %1 == lpt1 GOTO PRN
- IF %1 == LPT2 GOTO PRN
- IF %1 == lpt2 GOTO PRN
- IF %1 == COM1 GOTO PRN
- IF %1 == com1 GOTO PRN
- IF %1 == COM2 GOTO PRN
- IF %1 == com2 GOTO PRN
- IF %1 == SCRN GOTO SCREEN
- IF %1 == scrn GOTO SCREEN
- ECHO %1 is not a valid port. Please enter
- ECHO LPT1, LPT2, COM1, COM2 or SCRN.
- GOTO END
- :SCREEN
- TYPE README
- GOTO END
- :DEFPRN
- ECHO This batch file prints the README file to PRN
- GOTO SKIP
- :PRN
- ECHO This batch file prints the README file to %1
- :SKIP
- ECHO To print to a different port, cancel and enter README (port)
- ECHO To see the README file on your screen enter README SCRN
- ECHO .
- ECHO Hit Ctrl-Break to cancel the print or ..
- PAUSE
- IF NOT %1X == X GOTO SKIP2
- COPY README PRN >NUL
- GOTO END
- :SKIP2
- COPY README %1 >NUL
- :END
- ECHO ON