Include

Index

Includes the contents of one configuration block within another.

You can use this command only in your CONFIG.SYS file.

Syntax:

To install a memory resident program into conventional memory:
INCLUDE=blockname

blocknameSpecifies the name of the configuration block to include.

Notes:

Used for defining multiple configurations within a single CONFIG.SYS file. With multiple configurations, you define a menu that appears when your computerstarts. Each menu item corresponds to a block of commands, or "configuration block," in your CONFIG.SYS file.

Example:

The following CONFIG.SYS file defines three configurations:

    [menu]
    menuitem=base_config, Base configuration only
    menuitem=full_config, Normal configuration
    menuitem=net_config, Normal configuration with network
 
    [base_config]
    dos=high
    device=c:\dos\himem.sys
 
    [full_config]
    include=base_config
    dos=umb
    device=c:\dos\emm386.exe ram
    devicehigh=c:\dos\ramdrive.sys 512
 
    [net_config]
    include=full_config
    devicehigh=c:\net\network.sys
 
    [common]

This CONFIG.SYS file contains four configuration blocks.

The [base_config] block contains two typical CONFIG.SYS commands.

The [full_config] block includes the commands in [base_config] plus the DOS=UMB command, a DEVICE command, and a DEVICEHIGH command.

The third configuration, [net_config], includes all the commands in [full_config], which in turn includes those in [base_config].

The [common] block appears at the end of the CONFIG.SYS file.

It is a good idea to end your CONFIG.SYS file with a [common] block so that installation programs can successfully append commands to your CONFIG.SYS file.


This page last revised:
January 1, 2003.