MODE: Configures a system device.


 


... The examples for the command "MODE"
... "MODE" Excerpt from Microsoft Windows Help
... Important information, tips for the "MODE" command

The command: "MODE" is on Windows 12, 11, 10, .. , MS Server 2025, 2022, 2019, .. available

The examples for the command "MODE"

The `MODE` command in Windows Command Prompt is used to configure system devices and settings. Here are some examples of using the `MODE` command: Example 1: Show COM port settings:

MODE COM1

Description: Displays the current settings for the COM1 port, such as the baud rate, parity and data bits. Example 2: Change COM port settings:

MODE COM2:9600,N,8,1

Description: Changes the COM2 port settings to a baud rate of 9600, no parity, 8 data bits and 1 stop bit. Example 3: Show LPT port settings:

MODE LPT1

Description: Displays the current settings for the LPT1 port, such as printer mode and paper size. Example 4: Change LPT port settings:

MODE LPT2:COMPAT

Description: Changes the LPT2 port settings to compatibility mode. Example 5: Enable/Disable Serial Mouse:

MODE COM1: BAUD=1200 PARITY=N DATA=8 STOP=1

Description: Enables or disables the serial mouse on COM1 port by setting the baud rate, parity, data bits and stop bits. Example 6: Display of active connections:

FASHION

Description: Displays a list of active devices and their settings. Example 7: Changing the code page:

MODE CON CP PREP=((850) CON)

Description: Changes the console code page layout to 850. Please note that the exact options and their availability may vary depending on the version of Windows. It is advisable to consult the help of the `MODE` command to check specific options for your version of Windows. To display help, you can use the following command:

FASHION /?

Using `MODE` typically requires administrative privileges, especially when it comes to changing port settings or similar configurations.

"MODE" Excerpt from Microsoft Windows Help

Microsoft Windows [Version 10.0.19045.3693]
(c) Copyright 1985-2023 Microsoft Corp.

C:\\WINDOWS>

Configures system devices.

Serial port:       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]

Device Status:     MODE [device] [/STATUS]

Redirect printing: MODE LPTn[:]=COMm[:]

Select code page:  MODE CON[:] CP SELECT=yyy

Code page status:  MODE CON[:] CP [/STATUS]

Display mode:      MODE CON[:] [COLS=c] [LINES=n]

Typematic rate:    MODE CON[:] [RATE=r DELAY=d]

Important information, tips for the "MODE" command

There are a few important points to note when using the `MODE` command in the Windows Command Prompt: 1. Admin Privileges: Many `MODE` commands require administrator privileges, especially when accessing system devices or settings. Make sure you run Command Prompt as an administrator if you want to change settings that require administrator privileges. 2. Windows Version: The available options and their functionalities may vary depending on the Windows version. It's important to make sure the options you want to use are supported by the specific version of Windows. You can check this by calling help with `MODE /?`. 3. COM Port Settings: When changing COM port settings, you must ensure that the settings you choose match the needs of your device or application. This includes parameters such as baud rate, parity, data bits and stop bits. 4. LPT Port Settings: Similar to COM ports, changes to LPT port settings must take into account the needs of your printer or other connected devices. 5. Code Page Changes: Changing the code page affects the way characters are displayed in the command prompt. Make sure the code page you select matches your application's language or character requirements. 6. Serial Mouse Enable/Disable: The `MODE` command can also be used for enabling or disabling serial mice. Note that this may not be relevant in modern systems as serial mice are no longer in widespread use. 7. General Syntax: The general syntax of the `MODE` command is `MODE [device] [settings]`. The exact syntax and available options may vary. To check the options specific to your version of Windows, use the `MODE /?` command. 8. Security: Caution should be exercised when changing settings, particularly at the system level. Make sure you understand the impact of the changes and don't change security-related settings without a reason. 9. Testing: Before making extensive changes using the `MODE` command, it is advisable to first verify the changes in a test environment to avoid unwanted effects on the system. 10. Documentation: When using `MODE` in scripts or configuration files, it is important to document the options and changes used for easier maintainability and understanding. Using `MODE` requires a certain level of understanding of the specific configurations you want to make, as well as caution regarding the potential impact on your system.


Deutsch
English
Español
Français
Italiano
日本語 (Nihongo)
한국어 (Hangugeo)
汉语 (Hànyǔ)
Türkçe
Português
Português
Svenska
Norsk
Dansk
Suomi
Nederlands
Polski









Windows-10


... Windows 10 FAQ
... Windows 10 How To


Windows 10 How To


... Windows 11 How To
... Windows 10 FAQ



The command MODE - Configures a system device.

HTTP: ... console/en/042.htm
0.093
10459
WINDOWS SETTING MS SETTINGS WINDOWSUPDATE ACTION
Was ist Hartz-TV ?
What is Num Lock?
What are priorities?
VHD, was ist das für eine Datei?
What are desktop fonts?
IRQ-Konflikt, was ist das bitte?
WINDOWS EINSTELLUNG MS SETTINGS MULTITASKING SGUPDATE
WINDOWS EINSTELLUNG MS SETTINGS EASEOFACCESS CURSOR
WINDOWS EINSTELLUNG MS SETTINGS REGIONLANGUAGE CHSIME PINYIN



(0)