Home > Commands A-M > Commands M

MODE (Redirect Printing)


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Redirects output from a parallel port to a serial communications port.


Syntax

MODE /?

MODE LPTn[:]=COMn[:]


Parameters
COMn[:]
Specifies the serial port.
LPTn[:] (v1.1 Win95 NT3.5)
Specifies the parallel port. Valid values for n are in the range 1 through 3.

Switches
/? (NTXP)
Displays help.

Related

MODE - Configure Printer.
MODE - Configure Serial Port.
MODE - Display Device Status.
MODE - Set Device Code Pages.
MODE - Set Display Mode.
MODE - Set Typematic Rate.


Notes

none.


Examples

Suppose you want to set up your system so that it sends parallel-printer output to a serial printer. To do this, you must use the MODE command twice. The first time, you use MODE to configure the serial port; the second time, you use MODE to redirect parallel-printer output to the serial port you specified in the first MODE command.

For example, if your serial printer operates at 4800 baud with even parity and is connected to the COM1 port (the first serial connection on your computer), you would type:

    MODE COM1 48,e,,,b
    MODE LPT1=COM1

If you redirect parallel-printer output from LPT1 to COM1 but then decide that you want to print a file by using LPT1, use the command before you print the file. This command prevents the operating system from redirecting the file from LPT1 to COM1.

    MODE LPT1

Errorlevels

none.


Availability
External Resident
DOS
v1.0? v1.05? v1.1 v1.11 v1.24 v1.25 v1.85 v2.0 v2.01 v2.05 v2.10 v2.11 v2.11R v2.12 v2.2 v2.25 v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
Win95 Win98 WinME
Windows NT
NT3.5 NT4 NT2000 NTXP NT2003