翻译:Commands for Defining Multiple System Configurations on MS-DOS 6.0 林丁 1994-03-04 To define multiple configurations,follow these general steps: 1、Define a startup menu in the CONFIG.SYS fileby using a [menu] header followedby one or more commands.The , and 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、 In the AUTOEXEC.BAT file,use batch commands such as GOTO and IF tohave 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 configurationblock.To have MS-DOS carry out different sets of commands for different CONFIG values,add a GOTO %CONFIG% command to your AUTOEXEC.BAT file. MS_DOS 6.0定义多重系统配置的命令 一个CONFIG.SYS文件即可定义若干不同的系统配置。定义多重配置使用下列专用CONFIG.SYS命令: 〈包含〉 〈菜单颜色〉 〈默认菜单〉 〈菜单项〉 〈子菜单〉 用下列通用步骤定义多重配置: 1、以[menu]作菜单头,下接一个或多个〈菜单项〉命令行来定义CONFIG.SYS文件的启动菜单。〈默认菜单〉、〈菜单颜色〉和〈子菜单〉用于定义启动菜单的一些特殊性质。 2、在CONFIG.SYS文件中为每一个配置建立一个配置模块。每一个配置模块均以一个块头(用方括号括住的模块名)开始,在各模块中加入当其配置在启动菜单被选择时你想MS_DOS执行的CONFIG.SYS命令。 3、(可选步骤)在AUTOEXEC.BAT文中使用诸如GOTO和IF的批处理命令,使MS_DOS根据不同的启动配置执行不同的AUTOEXEC.BAT命令。 当一个配置在启动菜单中被选定时,MS_DOS便定义一个名为CONFIG的环境变量,并将其设置给被选模块名。为了使MS_DOS按不同的CONFIG值来执行不同的命令集,需加一个GOTO %CONFIG%命令于AUTOEXEC.BAT文件中。