Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ print(CMD) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 print(CMD)                      19 June 1992                      print(CMD)


 Name

    print - print a text file while you are using other MS-DOS commands

 Syntax


    print [/d:device] [/b:size] [/u:ticks1] [/m:ticks2] [/s:ticks3]
    [/q:qsize] [/t]

    [[drive:][path]filename [ ...]] [/c] [/p]

    To install print with the default parameters or to display the contents
    of the print queue on your screen without affecting the queue, use the
    following syntax:

    print


 Description

    This command can print in the background if you have an output device
    connected to one of your system's serial or parallel ports.

 Parameter


    drive:][path]filename
              Specifies the location and name of a file or set of files you
              want to print.  You can include multiple files (usually as many
              as 13) on one command line.


 Switches


    /d:device Specifies the name of the print device.  Valid values for
              parallel ports are lpt1, lpt2, and lpt3. Valid values for
              serial ports are com1, com2, com3, and com4. The default value
              is prn. The values prn and lpt1 refer to the same parallel
              port. The /d switch must precede any filename used on the com-
              mand line.

    /b:size   Sets the size (in bytes) of the internal buffer, which is used
              to store data before it is sent to the printer.  The minimum
              and default value for size is 512; the maximum value is 16384.
              Increasing this value decreases the amount of memory available
              for other purposes but may speed up the print command.

    /u:ticks1 Specifies the maximum number of clock ticks print is to wait
              for a printer to be available (clock ticks occur about 18 times
              per second).  If the printer is not available within the time
              specified, the job does not print.  Values for ticks1 must be
              in the range 1 through 255.  The default value is 1.

    /m:ticks2 Specifies the maximum number of clock ticks print can take to
              print a character on the printer.  Values for ticks2 must be in
              the range 1 through 255.  The default value is 2.  If a charac-
              ter is printed too slowly, MS-DOS displays an error message.

    /s:ticks3 Specifies the number of clock ticks the MS-DOS scheduler allo-
              cates for background printing.  Values for ticks3 must be in
              the range 1 through 255.  The default value is 8.  Increasing
              this value can speed up printing while slowing down other pro-
              grams.

    /q:qsize  Specifies the maximum number of files allowed in the print
              queue.  Values for qsize must be in the range 4 through 32. The
              default value is 10.

    /t        Removes all files from the print queue.

    /c        Removes files from the print queue.  You can use the /c and /p
              switches on the same command line.  When the /c switch precedes
              the list of filenames on the command line, it applies to all
              files whose names follow the /c switch, until print encounters
              a /p switch, in which case the /p switch applies to the file
              whose name precedes the /p switch.  When the /c switch follows
              a filename, it applies to the file whose name precedes the /c
              switch and all files whose names follow the /c switch, until
              print encounters a /p switch, in which case the /p switch
              applies to the file whose name precedes the /p switch.

    /p        Adds files to the print queue.  You can use the /c and /p
              switches on the same command line.  When the /p switch precedes
              the list of filenames on the command line, it applies to all
              files whose names follow the /p switch, until print encounters
              a /c switch, in which case the /c switch applies to the file
              whose name precedes the /c switch.  When the /p switch follows
              a filename, it applies to the file whose name precedes the /p
              switch and all files whose names follow the /p switch, until
              print encounters a /c switch, in which case the /c switch
              applies to the file whose name precedes the /c switch.


 Notes


    Length of a print queue entry

    Each print queue entry can contain a maximum of 64 characters.  Each
    queue entry includes the drive letter, directory, and any subdirectories.

    Limitations on switches

    You can only use the /d, /b, /u, /m, /s, and /q switches the first time
    you use the print command after starting MS-DOS.  To use one of these
    switches after using print, you need to restart MS-DOS.

    Printing files generated by programs

    Many programs have their own print commands.  You should use a program's
    print command to print files that you create with the program.

 Examples

    The following command sets up the print queue for printing on LPT1:

       print /d:lpt1


    The following command removes the PENCIL.TST file from the print queue:

       print a:pencil.tst /c


    The next command shows how to remove the file PENCIL.TST from the queue
    and add the file PEN.TST to the queue:

       print pencil.tst /c pen.tst /p


    The following three examples use switches that work only with the first
    print command you use after starting MS-DOS.

    To specify that the print command is to wait 60 clock ticks for a printer
    to be available and that the MS-DOS scheduler is to allocate 25 clock
    ticks to the print command for background printing rather than the
    default value of 8 clock ticks, type the following command:

       print /u:60 /s:25


    The following example specifies that print has 4 clock ticks available to
    print each character rather than the default value of 2 clock ticks:

       print /m:4


    To change the default maximum number of files for the print queue, use
    the print command with the /q switch, as the following example shows:

       print /q:32


 Related commands

    For information about configuring a printer connected to a parallel port,
    see the mode(CMD) (configure printer) command.

    For information about displaying the status of a printer, see the
    mode(CMD) (display device status) command.

    For information about configuring a printer connected to a serial port,
    see the mode(CMD) (redirect printing) command.

    For information about preparing printers for code-page switching, see the
    mode(CMD) (set device code pages) command.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026