home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- IF %1X==X GOTO HELP
- IF %1X==?X GOTO HELP
- IF NOT EXIST %1 GOTO ERR1
- IF %2X==X GOTO L0
- IF %2X==/PX GOTO L0P
- IF %2X==/pX GOTO L0P
- IF %2X==1X IF %3X==X GOTO L1
- IF %2X==2X IF %3X==X GOTO L2
- IF %2X==3X IF %3X==X GOTO L3
- IF %2X==4X IF %3X==X GOTO L4
- IF %2X==5X IF %3X==X GOTO L5
- IF %2X==6X IF %3X==X GOTO L6
- IF %2X==1X IF %3X==/PX GOTO L1P
- IF %2X==2X IF %3X==/PX GOTO L2P
- IF %2X==3X IF %3X==/PX GOTO L3P
- IF %2X==4X IF %3X==/PX GOTO L4P
- IF %2X==5X IF %3X==/PX GOTO L5P
- IF %2X==6X IF %3X==/PX GOTO L6P
- IF %2X==1X IF %3X==/pX GOTO L1P
- IF %2X==2X IF %3X==/pX GOTO L2P
- IF %2X==3X IF %3X==/pX GOTO L3P
- IF %2X==4X IF %3X==/pX GOTO L4P
- IF %2X==5X IF %3X==/pX GOTO L5P
- IF %2X==6X IF %3X==/pX GOTO L6P
- GOTO HELP
- :L0
- IF NOT EXIST FPLOTV.PAR GOTO ERR2
- FOR %%F IN (%1) DO FPLOTC %%F CGAC.DFN NUL FPLOTV.PAR
- GOTO END
- :L0P
- IF NOT EXIST %3 GOTO ERR2
- FOR %%F IN (%1) DO FPLOTC %%F CGAC.DFN NUL %3
- GOTO END
- :L1
- IF NOT EXIST FPLOT1.PAR GOTO ERR2
- FOR %%F IN (%1) DO FPLOTC %%F EPSRXL.DFN LPT1 FPLOT1.PAR
- GOTO END
- :L1P
- IF NOT EXIST %4 GOTO ERR2
- FOR %%F IN (%1) DO FPLOTC %%F EPSRXL.DFN LPT1 %4
- GOTO END
- :L2
- IF NOT EXIST FPLOT1.PAR GOTO ERR2
- FOR %%F IN (%1) DO FPLOTC %%F EPSRXH.DFN LPT1 FPLOT1.PAR
- GOTO END
- :L2P
- IF NOT EXIST %4 GOTO ERR2
- FOR %%F IN (%1) DO FPLOTC %%F EPSRXH.DFN LPT1 %4
- GOTO END
- :L3
- GOTO HELP
- :L3P
- GOTO HELP
- :L4
- GOTO HELP
- :L4P
- GOTO HELP
- :L5
- GOTO HELP
- :L5P
- GOTO HELP
- :L6
- GOTO HELP
- :L6P
- GOTO HELP
- :HELP
- ECHO Usage: FPLOT plotfile [printer] [/P parmeterfile]
- ECHO .................................................
- ECHO plotfile is the full pathname of the file
- ECHO containing HP-GL commands. The pathname may have
- ECHO the wildcards * and ? to produce a series of
- ECHO plots.
- ECHO .................................................
- ECHO printer is an optional number that determines
- ECHO the output printer and resolution. If it is
- ECHO omitted, the plot is directed to the screen.
- ECHO The printer option can be one of the following:
- ECHO 1 - Draft quality on LPT1
- ECHO 2 - High resolution on LPT1
- ECHO 3 - Draft quality on LPT2
- ECHO 4 - High resolution on LPT2
- ECHO 5 - Draft quality on LPT3
- ECHO 6 - High resolution on LPT3
- ECHO .................................................
- ECHO The /P option allows a parameter file to be
- ECHO specified. Otherwise the default parameter
- ECHO file is used.
- GOTO END
- :ERR1
- ECHO File %1 not found.
- GOTO END
- :ERR2
- ECHO Parameter file not found.
- :END