home *** CD-ROM | disk | FTP | other *** search
- LP (Line Print)
-
- Description: Prints a selected text file and provides options to let you
- control the format of the output.
-
- Syntax: Version 3.0: LP [(drive:)][(path)]( filename)[[PRN | COM(n)
- | LPT(n)] | [(drive:)][(path)](filespec)]
- [/B(n)] [/H(n)] [/L(n)] [/N] [/P(n)] [/R(n)]
- [/S(n)] [/T(n)] [/W(n)] [/80 | /132]
-
- Version 3.1: LP [(drive:)][(path)](filespec) [[PRN | COM(n)
- | LPT(n)] | [(drive:)][(path)](filespec)]
- [/B(n)] [/EUR] [/H(n)] [/L(n)] [/N] [/NOH]
- [/P(n)] [/R(n)] [/S(n)] [/T(n)] [/W(n)] [/80 |
- /132]
-
- Version 4.0: LP [(drive:)][(path)](filespec) [[PRN[:] |
- COM(n)[:] | LPT(n)[:]] |
- [(drive:)][(path)](filespec)] [/B(n)] [/EBCDIC]
- [/EXT] [/H(n)] [/HEADER(n)] [/L(n)] [/N]
- [/P(n)] [/R(n)] [/S(n)]
- [/SET:[(drive:)][(path)](filespec)][/T(n)]
- [/W(n)] [/80 | /132]
-
- Version 4.5: LP [(drive:)][(path)](filespec) [[PRN[:] |
- COM(n)[:] | LPT(n)[:]] |
- [(drive:)][(path)](filespec)] [/B(n)] [/EBCDIC]
- [/H(n)] [/HEADER(n)] [/L(n)] [/N] [/P(n)]
- [/R(n)] [/S(n)] [/T(n)] [/W(n)] [/WS] [/80 |
- /132]
-
- Parameters:
-
- (drive:) The single-letter specifier (A:, B:, C:, etc.) for the drive
- containing the file you want to print, the output file, or the
- printer setup (/SET:) file. Follow the letter with a colon.
- The current drive is the default. (path) The full name
- (C:\WP\LETTERS) of the directory containing the file you want
- to print, the output file, or the printer setup (/SET:) file.
- The current directory for the designated drive is the default.
-
-
- (filespec) The name of the file you want to print, the name of the file
- to which you want to direct the output, or the file containing
- printer setup (/SET:) information. You cannot use the and ?
- wildcard characters in either the output filename or the setup
- information filename. If the output file does not exist, LP
- creates it.
-
-
-
-
- PRN | COM(n) | LPT(n) The logical name of the device to which you want to
- direct the output. To complete the COM or LPT name,
- supply an integer value (such as 1) for (n). The
- default is the standard printer device. Note that in
- versions 4.0 and 4.5 you can include a colon after
- PRN, COM(n), and LPT(n).
-
-
- /B(n) Sets the bottom margin, in number of lines. The default value
- for (n) is 5.
-
- /EBCDIC Indicates that the input file is in Extended Binary Coded
- Decimal Interchange Code format rather than in ASCII format.
-
- /EUR In version 3.1, specifies the European character set and sends
- character codes 128 through 255 to the printer without
- alteration. If you do not use this switch, LP removes the
- high-order bit from all characters to restrict the output
- range of codes to 0 through 127.
-
-
- /EXT In version 4.0, specifies the extended character set and
- prints all characters without modification. If you do not use
- this switch, LP removes the high-order bit from all
- characters to restrict the output range of codes to 0 through
- 127.
-
- /H(n) Sets the page height, in number of lines. The default value
- for (n) is 66.
-
- /HEADER(n) Specifies the type of header. If you do not want a header,
- use /HEADER0. (/HEADER0 is the same as /NOH in version 3.1.)
- /HEADER1, the default, produces a header with the input
- filename, the current date and time, and page numbers.
- /HEADER2 produces a header with the input filename, the
- current date and time, page numbers, and the input file date
- and time.
-
- /L(n) Sets the left margin, in number of columns. The default value
- for (n) is 5.
-
- /N Turns on line numbering. If you do not use this switch, LP
- does not print line numbers.
-
-
-
-
-
-
- /NOH In version 3.1, suppresses page headers. If you do not include
- this switch, the utility produces a page header containing
- (filespec), the current date and time, and page numbers.
-
- /P(n) Sets the first page number. The default value for (n) is 1.
-
- /R(n) Sets the right margin, in number of columns. The default value
- for (n) is 5.
-
- /S(n) Sets line spacing. The default value for (n) is 1.
-
- /SET: Specifies the file containing printer setup information. LP
- translates the data in this file and sends the data to the
- printer before printing begins. LP does not reset printer
- control information when the output is complete. To
- reestablish printer defaults, send a Reset command sequence to
- your printer after using LP with a /SET: parameter. See the
- example below.
-
-
- Note that in the printer setup file, you enter special control
- codes either as \(nnn) (where (nnn) is the decimal number for
- the code you want to produce) or as \(x) (where (x) is any
- character that produces a valid Ctrl-(x) sequence). LP
- translates these codes before sending them to the printer. LP
- sends all other characters exactly as you entered them, but it
- does not send carriage returns.
-
- /T(n) Sets the top margin, in number of lines. The default value for
- (n) is 3.
-
- /W(n) Sets the width of the page, in number of columns. The default
- value for (n) is 85.
-
- /WS In a WordStar input file, removes the high-order bit from all
- characters to restrict the output range of codes to 0 through
- 127. The default in version 4.5 is to send character codes 128
- through 255 to the printer without alteration.
-
- /80 Switches to normal print mode, which is the default.
-
- /132 Switches to compressed print mode.
-
-
-
- Example To use version 4.5 to create a file named DIRGRPH.TXT
- containing a graphic list of all directories on all drives and
- to print the result on a Hewlett-Packard LaserJet II printer
- using the IBM-US character set and the line printer font.
-
- Enter: 7LD /A /G ) dirgrph.txt
- LP dirgrph.txt /H80 /SET:lpibmus.txt
- LP blank.txt /SET:reset.txt
-
- where LPIBMUS.TXT contains:
-
- \027(10U )(Set to IBM-US character set)
- \027(s0t16.66h8.5V )(Set to line printer font)
- \027&l8D )(Set to eight lines per inch)
-
- and RESET.TXT contains:
-
- \027E
-
- and BLANK.TXT is an empty file.
-
-
-
-
-
-
-
-
-
-
-
-
-
- Notes:
-
- In version 4.0 you must add the /EXT switch to the first LP command. Do not
- include the preceding parenthetical comments in the file LPIBMUS.TXT.
-