home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / c / ccp5nta1.zip / README.BAT < prev    next >
DOS Batch File  |  1992-09-07  |  951b  |  47 lines

  1. ECHO OFF
  2. CLS
  3. IF %1XXX == XXX GOTO PRN
  4. IF %1 == PRN GOTO PRN
  5. IF %1 == prn GOTO PRN
  6. IF %1 == LPT1 GOTO LPT1
  7. IF %1 == lpt1 GOTO LPT1
  8. IF %1 == LPT2 GOTO LPT2
  9. IF %1 == lpt2 GOTO LPT2
  10. IF %1 == COM1 GOTO COM1
  11. IF %1 == com1 GOTO COM1
  12. IF %1 == COM2 GOTO COM2
  13. IF %1 == com2 GOTO COM2
  14. IF %1 == SCRN GOTO SCREEN
  15. IF %1 == scrn GOTO SCREEN
  16. ECHO %1 is not a valid port. Please enter
  17. ECHO LPT1, LPT2, COM1, COM2 or SCRN.
  18. GOTO END
  19. :SCREEN
  20. TYPE README
  21. GOTO END
  22. :PRN
  23. SET PPORT=PRN
  24. GOTO VALIDPRN
  25. :LPT1
  26. SET PPORT=LPT1
  27. GOTO VALIDPRN
  28. :LPT2
  29. SET PPORT=LPT2
  30. GOTO VALIDPRN
  31. :COM1
  32. SET PPORT=COM1
  33. GOTO VALIDPRN
  34. :COM2
  35. SET PPORT=COM2
  36. :VALIDPRN
  37. ECHO This batch file prints the README file to %PPORT%
  38. ECHO To print to a different port, cancel and enter   README (port)
  39. ECHO To see the README file on you screen enter       README SCRN
  40. ECHO .
  41. ECHO Hit Ctrl-Break to cancel the print or ..
  42. PAUSE
  43. COPY README %PPORT%
  44. SET PPORT=
  45. :END
  46. ECHO ON
  47.