home *** CD-ROM | disk | FTP | other *** search
/ norge.freeshell.org (192.94.73.8) / 192.94.73.8.tar / 192.94.73.8 / pub / computers / pcjr / utility / DRNU451.LZH / NULP < prev    next >
Text File  |  1990-10-19  |  8KB  |  184 lines

  1.                               LP (Line Print) 
  2.  
  3. Description:   Prints a selected text file and provides options to let you
  4.                control the format of the output. 
  5.  
  6. Syntax:        Version 3.0:   LP [(drive:)][(path)]( filename)[[PRN | COM(n)
  7.                               | LPT(n)] | [(drive:)][(path)](filespec)]
  8.                               [/B(n)] [/H(n)] [/L(n)] [/N] [/P(n)] [/R(n)]
  9.                               [/S(n)] [/T(n)] [/W(n)] [/80 | /132] 
  10.  
  11.                Version 3.1:   LP [(drive:)][(path)](filespec) [[PRN | COM(n)
  12.                               | LPT(n)] | [(drive:)][(path)](filespec)]
  13.                               [/B(n)] [/EUR] [/H(n)] [/L(n)] [/N] [/NOH]
  14.                               [/P(n)] [/R(n)] [/S(n)] [/T(n)] [/W(n)] [/80 |
  15.                               /132]  
  16.  
  17.                Version 4.0:   LP [(drive:)][(path)](filespec) [[PRN[:] |
  18.                               COM(n)[:] | LPT(n)[:]] |
  19.                               [(drive:)][(path)](filespec)] [/B(n)] [/EBCDIC]
  20.                               [/EXT] [/H(n)] [/HEADER(n)] [/L(n)] [/N]
  21.                               [/P(n)] [/R(n)] [/S(n)]
  22.                               [/SET:[(drive:)][(path)](filespec)][/T(n)]
  23.                               [/W(n)] [/80 | /132] 
  24.  
  25.                Version 4.5:   LP [(drive:)][(path)](filespec) [[PRN[:] |
  26.                               COM(n)[:] | LPT(n)[:]] |
  27.                               [(drive:)][(path)](filespec)] [/B(n)] [/EBCDIC]
  28.                               [/H(n)] [/HEADER(n)] [/L(n)] [/N] [/P(n)]
  29.                               [/R(n)] [/S(n)] [/T(n)] [/W(n)] [/WS]  [/80 |
  30.                               /132] 
  31.  
  32.                                 Parameters: 
  33.  
  34. (drive:)       The single-letter specifier (A:, B:, C:, etc.) for the drive
  35.                containing the file you want to print, the output file, or the
  36.                printer setup (/SET:) file. Follow the letter with a colon.
  37.                The current drive is the default. (path)   The full name
  38.                (C:\WP\LETTERS) of the directory containing the file you want
  39.                to print, the output file, or the printer setup (/SET:) file.
  40.                The current directory for the designated drive is the default.
  41.                
  42.  
  43. (filespec)     The name of the file you want to print, the name of the file
  44.                to which you want to direct the output, or the file containing
  45.                printer setup (/SET:) information. You cannot use the and ?
  46.                wildcard characters in either the output filename or the setup
  47.                information filename. If the output file does not exist, LP
  48.                creates it. 
  49.  
  50.  
  51.  
  52.  
  53. PRN | COM(n) | LPT(n)    The logical name of the device to which you want to
  54.                          direct the output. To complete the COM or LPT name,
  55.                          supply an integer value (such as 1) for (n). The
  56.                          default is the standard printer device. Note that in
  57.                          versions 4.0 and 4.5 you can include a colon after
  58.                          PRN, COM(n), and LPT(n).  
  59.  
  60.  
  61. /B(n)          Sets the bottom margin, in number of lines. The default value
  62.                for (n) is 5.
  63.  
  64. /EBCDIC        Indicates that the input file is in Extended Binary Coded
  65.                Decimal Interchange Code format rather than in ASCII format.
  66.  
  67. /EUR           In version 3.1, specifies the European character set and sends
  68.                character codes 128 through 255 to the printer without
  69.                alteration. If you do not use this switch, LP removes the
  70.                high-order bit from all characters to restrict the output
  71.                range of codes to 0 through 127.
  72.  
  73.  
  74. /EXT           In version 4.0, specifies the extended character set and
  75.                prints all characters without modification. If you do not use
  76.                this switch, LP removes the high-order bit from  all
  77.                characters to restrict the output range of codes to 0  through 
  78.                127.
  79.  
  80. /H(n)          Sets the page height, in number of lines. The default value
  81.                for (n) is 66.
  82.  
  83. /HEADER(n)     Specifies the type of header. If you do not  want a header,
  84.                use /HEADER0. (/HEADER0 is the same as /NOH in version 3.1.)
  85.                /HEADER1, the default, produces a header with the input
  86.                filename, the current date and time, and page numbers.
  87.                /HEADER2 produces a header with the input filename, the
  88.                current date and time, page numbers, and the input file date
  89.                and time.
  90.  
  91. /L(n)          Sets the left margin, in number of columns. The default value
  92.                for (n) is 5.
  93.  
  94. /N             Turns on line numbering. If you do not use this switch, LP
  95.                does not print line numbers.
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. /NOH           In version 3.1, suppresses page headers. If you do not include
  103.                this switch, the utility produces a page header containing
  104.                (filespec), the current date and time, and page numbers.
  105.  
  106. /P(n)          Sets the first page number. The default value for (n) is 1.
  107.  
  108. /R(n)          Sets the right margin, in number of columns. The default value
  109.                for (n) is 5.
  110.  
  111. /S(n)          Sets line spacing. The default value for (n) is 1.
  112.  
  113. /SET:          Specifies the file containing printer setup information. LP
  114.                translates the data in this file and sends the data to the
  115.                printer before printing begins. LP does not reset printer
  116.                control information when the output is complete. To
  117.                reestablish printer defaults, send a Reset command sequence to
  118.                your printer after using LP with a /SET: parameter. See the
  119.                example below.
  120.  
  121.  
  122.                Note that in the printer setup file, you enter special control
  123.                codes either as \(nnn) (where (nnn) is the decimal number for
  124.                the code you want to produce) or as \(x) (where (x) is any
  125.                character that produces a valid Ctrl-(x) sequence). LP
  126.                translates these codes before sending them to the printer. LP
  127.                sends all other characters exactly as you entered them, but it
  128.                does not send carriage returns.
  129.  
  130. /T(n)          Sets the top margin, in number of lines. The default value for
  131.                (n) is 3.
  132.  
  133. /W(n)          Sets the width of the page, in number of columns. The default
  134.                value for (n) is 85.
  135.  
  136. /WS            In a WordStar input file, removes the high-order bit from all
  137.                characters to restrict the output range of codes to 0 through
  138.                127. The default in version 4.5 is to send character codes 128
  139.                through 255 to the printer without alteration.
  140.  
  141. /80            Switches to normal print mode, which is the default.
  142.  
  143. /132           Switches to compressed print mode.
  144.  
  145.  
  146.  
  147. Example        To use version 4.5 to create a file named DIRGRPH.TXT
  148.                containing a graphic list of all directories on all drives and
  149.                to print the result on a Hewlett-Packard LaserJet II printer
  150.                using the IBM-US character set and the line printer font.
  151.  
  152.                Enter:    7LD /A /G ) dirgrph.txt
  153.                          LP dirgrph.txt /H80 /SET:lpibmus.txt
  154.                          LP blank.txt /SET:reset.txt
  155.  
  156.                where LPIBMUS.TXT contains:
  157.  
  158.                          \027(10U  )(Set to IBM-US character set)
  159.                          \027(s0t16.66h8.5V  )(Set to line printer font)
  160.                          \027&l8D  )(Set to eight lines per inch)
  161.  
  162.                and RESET.TXT contains:
  163.  
  164.                          \027E
  165.  
  166.                and BLANK.TXT is an empty file.
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.                                    Notes:
  181.  
  182. In version 4.0 you must add the /EXT switch to the first LP command. Do not
  183. include the preceding parenthetical comments in the file LPIBMUS.TXT.
  184.