Home   MS-DOS Home   A-Z   NS Utilities   Command Syntax

MODE

Home >> MS-DOS Reference >> Command Categories >> Environment Commands >> MODE

Environment Commands

Environment Commands


Summary
Description
Command Syntax
Comments
Supported DOS versions: All versions
How easy to use? Hard
How safe to use? Moderately dangerous
How common? Fairly common
Internal or external command? External

Description

Sets a number of options relating to the computer, printer and other devices

Command Syntax

This is one of the most complex commands. It does all of the following:
  1. Changes the active code page
  2. Configures the printer
  3. Configures serial ports
  4. Displays info on various devices
  5. Configures the display
  6. Configures the keyboard repeat rate and delay
  7. Redirects the printer

Changing Codepage

To prepare a codepage for a particular device:

MODE device codepage prepare=((yyy )filename)

To select a codepage and make it active

MODE device codepage select=yyy

To restore a previously selected codepage

MODE device codepage refresh

To display information on the current codepage status for a particular device:

MODE device codepage [/stat[us]]

 
Device Codepage file
EGA/VGA graphics adaptor EGA.CPI
IBM PC Convertible LCD display LCD.CPI
IBM 4201 Proprinter family 4201.CPI
IBM Proprinter X24 and XL24 4208.CPI
IBM Quietwriter III 5202.CPI
You may have other CPI files available; see your DOS documentation for details

Configuring Printer

MODE LPTn[:][c][,[l][,p]]

or

MODE LPTn[:] [cols=c] [lines=l] [retry=r]

Configuring Serial Port

MODE COMn[:]b[[,p[,d][,s[,p]]]]

or (DOS 4+)

MODE COMn[:] [baud=b] [parity=p] [data=d] [stop=s] [retry=r]

Device Status

MODE [device] [/sta[tus]]

Configuring Display

MODE [adaptor][,n]

or

MODE CON[:] [col=c] [lines=n]

To select a display and shift the image with CGA graphics

MODE [adaptor][, shift[,t]]

Configuring keyboard repeat rate

MODE CON[:] [rate=r delay=d]

Redirecting Printer

MODE LPTn[:]=COMm[:]

Comments

Redirecting the printer is usually used when you have a program that can only use the parallel port.
Home Home
MS-DOS MS-DOS Home
A - Z Index A - Z Index

Top of page
Summary
Description
Command Syntax
Comments




Top of page    Home    MS-DOS Home    NS Utilities
Copyright © 2005 Marcus Houlden  |  Copyright and Data Protection

Printed from the NukeSoft MS-DOS Reference. Copyright © 1995 - 2006 Marcus Houlden