mode (配置系统设备)

小猪老师 发表于 2020-06-23 16:02
浏览次数:
在手机上阅读

mode命令用于查看或修改端口或显示设置。

查看英文版

目录

1 mode 运行系统环境

2 mode syntax

3 mode 示例

mode 运行系统环境

Windows 95

Windows 98

Windows xp

Windows 2000

Windows 7

Windows 8

Windows 10

Windows NT

All Versions of MS-DOS

mode syntax

Windows Vista 和后来语法

配置系统设备。

串行端口:
MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]
设备状态: MODE [device] [/STATUS]
重定向打印: MODE LPTn[:]=COMm[:]
选择代码页: MODE device CP SELECT=yyy
代码页状态: MODE device CP [/STATUS]
显示 mode: MODE [display-adapter][,n]
MODE CON[:] [COLS=c] [LINES=n]
击键速率: MODE CON[:] [RATE=r DELAY=d]

Windows XP 和以前的语法

配置系统设备。

打印机端口: MODE LPTn[:] [COLS=c] [LINES=l] [RETRY=r]
串行端口: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]
设备状态: MODE [device] [/STATUS]
重定向打印 MODE LPTn[:]=COMm[:]
准备代码页 MODE device CP PREPARE=((yyy[...]) [drive:][path]file name)
选择代码页 MODE device CP SELECT=yyy
刷新代码页: MODE device CP REFRESH
代码页状态: MODE device CP [/STATUS]
显示模式: MODE [display-adapter][,n]
MODE CON[:] [COLS=c] [LINES=n]
击键速率: MODE CON[:] [RATE=r DELAY=d]

Windows Vista and later syntax

Configures system devices.

Serial port: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]
Device Status: MODE [device] [/STATUS]
Redirect printing: MODE LPTn[:]=COMm[:]
Select code page: MODE device CP SELECT=yyy
Code page status: MODE device CP [/STATUS]
Display mode: MODE [display-adapter][,n]
MODE CON[:] [COLS=c] [LINES=n]
Typematic rate: MODE CON[:] [RATE=r DELAY=d]

Windows XP and earlier syntax

Configures system devices.

Printer port: MODE LPTn[:] [COLS=c] [LINES=l] [RETRY=r]
Serial port: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]
Device Status: MODE [device] [/STATUS]
Redirect printing: MODE LPTn[:]=COMm[:]
Prepare code page: MODE device CP PREPARE=((yyy[...]) [drive:][path]file name)
Select code page: MODE device CP SELECT=yyy
Refresh code page: MODE device CP REFRESH
Code page status: MODE device CP [/STATUS]
Display mode: MODE [display-adapter][,n]
MODE CON[:] [COLS=c] [LINES=n]
Typematic rate: MODE CON[:] [RATE=r DELAY=d]

查看英文版

查看中文版

mode 示例

MODE COM1:9600,N,8,1,P

设置通信端口COM1到9600波特率,没有奇偶校验,8个数据位,1个停止位,和XON/XOFF(这些是默认设置)。
对于那些使用Windows 95、Windows 98、Windows NT或更高版本的用户,我们建议通过设备管理器修改端口。

MODE CON: COLS=80 LINES=50

将DOS目录结构的输出视频设置更改为80列50行。
如果行或cols值无效,您将收到错误“invalid parameter - x”,其中x是无效参数。

MODE

单独的输入模式将显示所有端口的当前模式设置,类似于下面的输出。

Status for device CON:
----------------------
Lines:          300
Columns:        80
Keyboard rate:  31
Keyboard delay: 1
Code page:      437
MODE COM1:9600,N,8,1,P

Set communications port COM1 to 9600 Baud, with no parity, 8 data bits, 1 stop bit, and with XON/XOFF (these are the default settings). For those who are using Windows 95, Windows 98, Windows NT, or later we suggest modifying the ports through Device Manager.

MODE CON: COLS=80 LINES=50

Change the output video settings for the directory structure in DOS to 80 columns by 50 lines. If the lines or cols values are invalid, you will receive the error "Invalid parameter - x," where x is the invalid parameter.

MODE

Typing mode alone would display the current mode settings for all the ports, similar to the below output.

Status for device CON:
----------------------
Lines:          300
Columns:        80
Keyboard rate:  31
Keyboard delay: 1
Code page:      437

查看英文版

查看中文版

其他命令行

map | md | mem | mkdir | mklink | mode | more | move | msav | msbackup | mscdex | msd | msg |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条