text
stringlengths
0
4.23k
Syntax
mode [<device>] [/status]
Parameters
Parameter
Description
<device>
Specifies the name of the device for which you want to display the status. Standard names include, LPT1: through LPT3:, COM1: through COM9:, and CON.
/status
Requests the status of any redirected parallel printers. You can also use /sta as an abbreviated version of this command.
/?
Displays help at the command prompt.
<device>
Redirect printing
Redirects printer output. You must be a member of the Administrators group to redirect printing.
Note
To set up your system so that it sends parallel printer output to a serial printer, you must use the mode command twice. The first time, you must use mode to configure the serial port. The second time, you must use mode to redirect parallel printer output to the serial port you specified in the first mode command.
Syntax
mode LPT<n>[:]=COM<m>[:]
Parameters
Parameter
Description
LPT<n>[:]
Specifies the number of the LPT to configure. Typically, this means providing a value from LTP1: through LTP3:, unless your system includes special parallel port support. This parameter is required.
COM<m>[:]
Specifies the COM port to configure. Typically, this means providing a value from COM1: through COM9:, unless your system has special hardware for additional COM ports. This parameter is required.
/?
Displays help at the command prompt.
<n>
<m>
Examples
To redirect a serial printer that operates at 4800 baud with even parity, and is connected to the COM1 port (the first serial connection on your computer), type:
mode com1 48,e,,,b
mode lpt1=com1
To redirect parallel printer output from LPT1 to COM1, and then to print a file using LPT1, type the following command before you print the file:
mode lpt1
This command prevents the redirection the file from LPT1 to COM1.
Select code page
Configures or queries the code page info for a selected device.
Syntax
mode <device> codepage select=<yyy>
mode <device> codepage [/status]
Parameters
Parameter
Description
<device>
Specifies the device for which you want to select a code page. CON is the only valid name for a device. This parameter is required.
codepage
Specifies which code page to use with the specified device. You can also use cp as an abbreviated version of this command. This parameter is required.
select=<yyy>
Specifies the number of the code page to use with the device. The supported code pages, by country/region or language, include:437: United States850: Multilingual (Latin I)852: Slavic (Latin II)855: Cyrillic (Russian)857: Turkish860: Portuguese861: Icelandic863: Canadian-French865: Nordic866: Russian869: Modern Greek This parameter is required.
/status
Displays the numbers of the current code pages selected for the specified device. You can also use /sta as an abbreviated version of this command. Regardless whether you specify /status, the mode codepage command will display the numbers of the code pages that are selected for the specified device.
/?
Displays help at the command prompt.
<device>
<yyy>
Display mode
Changes the size of the command prompt screen buffer