Hardware Reference
In-Depth Information
Command
Function
Examples:
MODE LPT1: 120,6
initializes the parallel printer LPT1 for printing 120 columns at
6 lines per inch.
MODE LPT2: 60,8
initializes the parallel printer LPT2 for printing 60 columns at
8 lines per inch.
MODE COM1: 1200,N,8,1
initializes the COM1 serial port for 1200 baud operation with no
parity, 8 data bits and 1 stop bit.
MODE COM2: 9600,N,7,2
initializes the COM2 serial port for 9600 baud operation with no
parity, 7 data bits and 2 stop bits.
MODE 40
sets the screen to 40-column text mode.
MODE 80
sets the screen to 80-column mode.
MODE BW80
sets the screen to monochrome 40-column text mode.
MODE CO80
sets the screen to colour 80-column mode.
MODE CON CODEPAGE PREPARE=((850)C: \ DOS \ EGA.CPI)
loads code page 850 into memory from the file EGA.CPI
located within the DOS directory.
The MODE command can be used to redirect printer output from
the parallel port to the serial port using MODE LPT1:=COM1:.
Normal operation can be restored using MODE LPT1:.
The PRINT command sends the contents of an ASCII text file to
the printer. Printing is carried out as a background operation and
data is buffered in memory. The default buffer size is 512 bytes;
however, the size of the buffer can be specified using /B:
(followed by required buffer size in bytes). When the utility is
first entered, the user is presented with the opportunity to redirect
printing to the serial port (COM1:). A list of files (held in a
queue) can also be specified.
Examples:
PRINT README.DOC
prints the file README.DOC from the current directory.
PRINT /B:4096 HELP1.TXT HELP2.TXT HELP3.TXT
( continued )
PRINT
Search WWH ::




Custom Search