> Commands A-M
> Commands M
MODE (Configure Printer)
Configures a printer connected to a parallel printer port.
This version of the MODE command sets the characteristics for an
IBM-compatible or Epson-compatible printer connected to a parallel
printer port (LPT1, LPT2, or LPT3).
- Specifies the number of characters (columns) per line: 80 or
132. The default value is 80. You can abbreviate this parameter
by omitting COLS= and specifying a value for c.
- Specifies the vertical spacing and the number of lines per
inch: 6 or 8. The default value is 6. You can abbreviate this
parameter by omitting LINES= and specifying a value for l.
Specifies the parallel port to which the device is attached.
Valid values for n are in the range 1 through 3.
If you omit any of the three parameters, MODE uses
the most recent setting for the omitted parameter. If you are
using the shorter form of the syntax (without the words COLS=,
LINES=, and RETRY=), the MODE command "recognizes" the
parameters by their positions. Thus, if you do not specify a
value for a parameter, you must still type the comma that
precedes the next parameter.
Specifies the retry action to take if a time-out error occurs
when MODE attempts to send output to a parallel printer. This
parameter causes part of MODE to remain resident in memory. The
list shows each valid value for r and a brief
description of its meaning:
- B Return "busy" from a status check of a busy port
- E Return an error from a status check of a busy port
- N Take no retry action (default value)
- P Continue retrying until printer accepts output
- R Return "ready" from a status check of a busy port
If you are using the MODE command over a network, do not use
any of the r values.
You can abbreviate this parameter by omitting RETRY= and
specifying a value for r.
MODE - Configure Serial Port.
MODE - Display Device Status.
MODE - Redirect Printing.
MODE - Set Device Code Pages.
MODE - Set Display Mode.
MODE - Set Typematic Rate.
Update to MODE parameter
The RETRY=R setting
provides the same support as the P parameter did in previous
versions of DOS.
Breaking out of a time-out loop
To break out of a time-out loop, press CTRL+BREAK (^BREAK).
Setting parallel-printer modes
For parallel-printer modes, you can use PRN and LPT1
Suppose you want to be able to print 80 characters per line and
8 lines per inch on a parallel printer that is connected to the
second parallel printer port (LPT2). To do this, type:
Because 80 characters per line is the default setting, you could
achieve the same result by typing:
Suppose that, when printing a file, you want your system to keep
trying to print the file until it is successful. To do this, type:
To stop your system from continually retrying to print, press
CTRL+BREAK (^BREAK) or type the MODE command without specifying a value for
- External Resident
- Windows NT