12/18/2015 - Hello! We're excited to announce that Mental Works Computing Software will soon be featuring

12/11/2015 - We're going to announce Dr.Batcher 3.0 Alpha with batch files debugger support soon. If you want to start...

News history...


Rob van der Woude:
"Mental Works Computing Software has created a nice tool for...

Andrew Jaritsyn:
“I used to write batch files with the help of Notepad, but...

Steve H.:
“This tool helped me to write some batch files in a couple...



Displays status and changes settings of ports and devices.


MODE comM[:] [baud=B] [parity=P] [data=D] [stop=S] [to={on|off}] [xon={on|off}] [odsr={on|off}] [octs={on|off}] [dtr={on|off|hs}] [rts={on|off|hs|tg}] [idsr={on|off}]


MODE [Device] [/status]


MODE lptN[:]=comM[:]


MODE Device codepage  [/status] [select=YYY]


MODE con[:] [cols=C] [lines=N] [rate=R delay=D]

Configuring a serial communications port:

comM[:] – specifies the number (M) of the async communications port.

baud=B – transmission rate in bits per second. B can have the following values:

parity=P – specifies how to use the parity bit to check for errors. P can have the following values:

data=D – number of data bits in a character. D can be from 5 to 8 (default 7).

stop=S – number of stop bits that define the end of character. S can be 1, 1.5 or 2. For baud rate 110 the default number of stop bits is 2, for other rates – 1.

to={on|off} – turns on/off infinite time-out processing (off by default).

xon={on|off} – tuns on/off xon/xoff protocol for data-flow control.

odsr={on|off} ‑ tuns on/off handshaking though Data Set Ready (DSR) circuit.

octs={on|off} ‑ tuns on/off handshaking though Clear To Send (CTS) circuit.

dtr={on|off|hs} ‑ tuns on/off Data Terminal Ready (DTR) circuit or sets it to handshaking mode.

rts={on|off|hs|tg} ‑ tuns on/off Request To Send (RTS) circuit or sets it to handshaking or toggle mode.

idsr={on|off} ‑ tuns on/off sensitivity of Data Set Ready (DSR) circuit.

Displaying status of device(s):

Device – name of the device which status will be displayed.

/status – requests status of redirecting parallel printers.

Redirecting data output from parallel to serial port:

lptN[:] – parallel port, N in the range from 1 to 3.

comM[:] – serial communications port, M in the range from 1 to 4.

Working with console code pages:

Device – the name of the device for which the code page will be selected.

codepage select=YYY – specifies the codepage to be selected. Allowed YYY values:

codepage ‑ displays the numbers of the code pages selected for the device.

codepage /status – displays the numbers of the current code pages for the device.

Changing the size of command prompt screen buffer:

con[:] – makes MODE understand that changes are made for command prompt window.

cols=C –the number of columns in a screen buffer (C).

lines=N ‑ the number of rows in a screen buffer (N).

Setting the keyboard typematic rate:

con[:] ‑ makes MODE understand that changes are made for keyboard.

rate=R – sets the rate  for repeating a character when a key is pressed. R should be from 1 to 32. Default R is 21.

delay=D – sets the time delay before character output repeats. D should be 1-4 (2 default) for 0.25-1 second.


You must have administrative permissions to change device settings and work with ports.


Change console windows settings:

MODE CON:cols=50 lines=10

Redirect ports:

MODE lpt1=com1


Subscribe batch files programming newsletter (no spam):