home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / plot / splot57.arc / PLOT1.BAT < prev    next >
DOS Batch File  |  1989-08-30  |  1KB  |  37 lines

  1. echo off
  2. rem   PLOT1 file
  3. rem   This batch file uses the HPLOT program to make a plot as a background
  4. rem   job. The HPLOT program outputs HPGL plotter commands to the file HP.DAT;
  5. rem   this file is then printed to a plotter connected to COM1 using the DOS
  6. rem   PRINT command.  The MODE command is used to set the baud rate of COM1
  7. rem   and to redirect printer output to COM1.
  8. rem
  9. rem   NOTE: Use this batch file to make only one plot at a time unless
  10. rem         you have a plotter that automatically loads the paper such as
  11. rem         the HP 7550 plotter.  Also note that a 3-D plot can result in
  12. rem         a very large HP.DAT file (as large as .5 MB).
  13.  
  14. echo.
  15. echo.WARNING: Make only one plot at a time unless using an HP 7550 plotter.
  16. echo.
  17.  
  18. if exist hp.dat del hp.dat
  19.  
  20. hplot %1 hp.dat
  21. if errorlevel 1 goto end
  22.  
  23. rem Set COM1 port to 9600 baud, No parity, 8 data bits, 1 stop bit, Printer
  24. mode COM1:9600,N,8,1,P
  25.  
  26. mode LPT1:=COM1:
  27. print hp.dat
  28.  
  29. echo.
  30. echo. NOTE: To re-enable your printer after the plot has been drawn
  31. echo.       type the following DOS command:
  32. echo.
  33. echo.                MODE LPT1:
  34. echo.
  35.  
  36. :end
  37.