Home > Commands N-Z > Configuration S

SWITCHES


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Specifies special options in the operating system. Use this command only in your CONFIG.SYS file.


Syntax

SWITCHES=[/F] [/K] [/N] [/W]


Parameters

none.


Switches
/F (v4.0)
Skips the 2-second delay after displaying the "Starting MS-DOS ..." message during startup.
/K (v4.0)
Forces an enhanced keyboard to behave like a conventional keyboard.
/N (v4.0)
Prevents you from using the F5 or F8 key to bypass startup commands. (SWITCHES /N does not prevent you from pressing CTRL+F5 or CTRL+F8 to bypass DRVSPACE.BIN; to prevent this, use the DRVSPACE /SWITCHES command to add the SWITCHES /N setting to your DRVSPACE.INI file.)
/W (v4.0)
Specifies that the WINA20.386 file has been moved to a directory other than the root directory. You need to use this switch only if you are using Microsoft Windows 3.0 in enhanced mode and have moved the WINA20.386 file from the root directory to another directory.

Related

For information about COMMAND.COM switches, see the COMMAND command.


Notes
When to use the SWITCHES command with an enhanced keyboard

If you have a program that does not correctly interpret input from an enhanced keyboard, add this command to your CONFIG.SYS file so your enhanced keyboard will use conventional keyboard functions.


Using the /K switch with ANSI.SYS

If you use the SWITCHES=/K command and you install the ANSI.SYS device driver, use the /K switch on the DEVICE command line for ANSI.SYS.


The SWITCHES command and the DRVSPACE /SWITCHES command

The SWITCHES /F and SWITCHES /N commands affect the behavior of the F5 and F8 keys when your computer starts. To control the behavior of the CTRL+F5 and CTRL+F8 startup keys, which bypass DriveSpace in addition to other startup commands, use the DRVSPACE /SWITCHES command.


Using the SWITCHES command with Microsoft Windows 3.0

In order for Microsoft Windows 3.0 to run in enhanced mode, the WINA20.386 file must be located in your root directory. If this file is not present, you will see this message:

    You must have the file WINA20.386 in the root of your boot drive
    to run Windows in Enhanced Mode

If you move the WINA20.386 file, you must add the SWITCHES command with the /W switch to your CONFIG.SYS file. You must also add a DEVICE command under the [386Enh] heading in your SYSTEM.INI file, specifying the new location of the WINA20.386 file.

If you do not use Microsoft Windows version 3.0, do not use the SWITCHES command with the /W switch.


Examples

If you want the operating system to use conventional keyboard functions even though you are using an enhanced keyboard, add to your CONFIG.SYS file:

    switches=/K

If you use Microsoft Windows 3.0 in enhanced mode and you have moved the WINA20.386 file to a directory other than the root directory, add to your CONFIG.SYS file:

    switches=/W

If you want to prevent users from using the F5 or F8 key to bypass startup commands, add to your CONFIG.SYS file:

    switches=/N

If you want to skip the 2-second delay after displaying the "Starting MS-DOS..." message during startup, add to your CONFIG.SYS file:

    switches=/F

Errorlevels

none.


Availability
External
DOS
v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
none
Windows NT
none