Index | Examples CONFIG.SYS Commands



Commands for Defining Multiple Configurations

A single CONFIG.SYS file can define several different system configurations. To define multiple configurations, you use the following special CONFIG.SYS commands: <Include> <Menucolor> <Menudefault> <Menuitem> <Submenu> To define multiple configurations, follow these general steps: 1 Define a startup menu in the CONFIG.SYS file by using a [menu] header followed by one or more <MENUITEM> commands. The <MENUDEFAULT>, <MENUCOLOR> and <SUBMENU> commands can be used to define special characteristics of the startup menu. 2 Create a configuration block in the CONFIG.SYS file for each configuration you want. A configuration block begins with a block header -- a name surrounded by square brackets. To each block, add the <CONFIG.SYS commands> that you want MS-DOS to carry out when that configuration is selected from the startup menu. 3 (Optional) In the AUTOEXEC.BAT file, use <batch commands> such as <GOTO> and <IF> to have MS-DOS carry out different AUTOEXEC.BAT commands depending on the startup configuration. When a configuration is selected from the startup menu, MS-DOS defines an environment variable named CONFIG and sets it to the name of the selected configuration block. To have MS-DOS carry out different sets of commands for different CONFIG values, add a GOTO %CONFIG% command to your AUTOEXEC.BAT file. For more information about defining multiple configurations, see the chapter "Configuring Your System" in the MS-DOS User's Guide.
-Top- | Examples CONFIG.SYS Commands