home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / helpfile / pkmenu.zip / PRINTDOC.BAT < prev    next >
DOS Batch File  |  1993-04-12  |  753b  |  37 lines

  1. echo off
  2. cls
  3.  
  4.  
  5. if !==!%1 goto NOPARAM
  6. if not %1 == PRINTFILE goto BADCOMMAND
  7. if not exist %2 goto END
  8.  
  9. echo] 
  10. echo (c) 1991 AccuSoft Public Domain & Shareware
  11. echo]
  12. echo File to print: %2 
  13. echo Hit (Control-C) if you want to skip over printing this file.
  14. echo Otherwise, align the paper to print out the file %2, and
  15. pause
  16. copy %2 prn
  17. goto END
  18.  
  19. :NOPARAM
  20. for %%f in (*.doc) do command /c printdoc PRINTFILE %%f
  21. for %%f in (*.txt) do command /c printdoc PRINTFILE %%f
  22. for %%f in (*.man) do command /c printdoc PRINTFILE %%f
  23.  
  24. echo] 
  25. echo All done printing!
  26. echo] 
  27. goto END
  28.  
  29. :BADCOMMAND
  30. echo] 
  31. echo To print any or all of the documentation files, just type:
  32. echo] 
  33. echo              PRINTDOC  (press enter)
  34. echo] 
  35.  
  36. :END
  37.