Config. sys is an important file in the dossystem. Its Configuration directly affects the usage and efficiency of the system. If improperly configured, many programs may fail to run normally. Therefore, it is necessary and important to correctly configure the config. SYS file. The following describes the commands in config. sys and their configuration methods.
Command in config. SYS:
Note: All commands ending with high (such as devicehigh) are called into umb (upper memory), but some such commands (such as fileshig) must be in MS-DOS 7. used in Version X.
Accdate: Specifies whether to record the last accessed date of the file on each drive.
Usage: accdate = drive 1 + |-[drive 2 + |-]...
For example, accdate = C + D + E + records the last accessed date of the file in the C, D, and E disks.
This command is only used in MS-DOS 7. X.
Break: Set or clear the extended Ctrl + C check.
Usage: Break = on | off
Buffers/buffershigh: Allocate memory for a specified number of disk buffers.
Usage: buffers = number of disk buffers, [number of buffers in the dependent cache]
Device/devicehigh: Load the specified device driver into the memory.
Usage: device/devicehigh file name [parameter]
The file name is the complete path of the file, such as C:/DOS/himem. sys.
DoS: Used for dossystem configuration, such as whether to use HMA (high-end memory zone.
Usage: DOS = [high | low] [, umb |, noumb] [, auto |, noauto] [, single]
High and low indicate that HMA is used or HMA is not used, umb and noumb indicate that umb is used or umb is not used, auto or noauto indicate that the system is configured automatically or not, single indicates a single DOS mode. Where Auto/noauto and single are only used in MS-DOS 7.x.
Drivparm: Set the parameters of an existing physical device.
Note: This command is rarely used, and I have never used it, so I will skip it temporarily.
FCBs/fcbshigh: Specifies the number of file control blocks (FCB) that can be opened at the same time.
Usage: FCBs/fcbshigh = number of FCB that can be opened at the same time.
Note: FCB is mainly used in DOS 1.x and can be automatically configured for later versions.
Files/fileshigh: Specifies the number of files that can be accessed at the same time.
Usage: files/fileshigh = number of files that can be accessed at the same time.
Note: Generally, the setting value of files/fileshigh is about 30.
Install/installhigh: Used to load TSR (memory resident program ).
Usage: Install/installhigh = file name [parameter]
For example: installhigh = C:/DOS/doskey. com/appedit
Lastdrive/lastdrivehigh: Specifies the last valid letter of the drive that can be accessed.
Usage: lastdrive = drive letter
For example, lastdrive = F will set F to the last valid drive letter.
Numlock: Specifies whether the lamp is enabled when numlock is enabled.
Usage: numlock = on | off
Rem: Add annotation.
Usage: REM [annotation string]
Note: The strings in the annotation are only used to increase readability and will not be executed.
Set: Design DOS environment variables.
Usage: Set variable = [variable value]
Shell: Specifies the name and location of the program to be interpreted by the command used by DOS.
Usage: shell = file name [parameter]
Note: The default file name is command. com. You can also specify other files, such as 4dos. EXE.
Stack/stackhigh: Number of stacks used.
Usage: Stack/stackhigh = number of stacks, size of each stack
Note: The value is usually 9,256, which can meet most requirements.
Switches: Specify some special options.
Usage: switches = [/W] [/F] [/K] [/n] [/E [: N]
Other menu configuration commands, such as menuitem and menucolor.
There are some undisclosed commands in MS-DOS 7.x, such as logo and comment.
After knowing the preceding commands, we need to talk about how to use these commands to configure the config. SYS file. The impact of configuration quality on the system is very large. The following are the contents of the config. SYS file in my computer (both MS-DOS 7.10), which can be used as a reference.
Computer 1, use emm386.exe:
Device = D:/DOS/echo. sys L/O/A/D/I/n/g config. sys...
Device = D:/DOS/himem. sys
Device = D:/DOS/emm386.exe noems novcpi I = b600-b7ff
Devicehigh = D:/DOS/mdctools/setver.exe
Devicehigh = D:/DOS/ifshlp. sys
Devicehigh = D:/DOS/vide-cdd.sys/D: IDE-CD
Devicehigh = D:/DOS/cloaking.exe
Country = 086,936, D:/DOS/country. sys
Shell = C:/command.com/P/E: 640
Set temp = E:/temp
Set TMP = E:/temp
Accdate = C + D + E +
DOS = high, umb, auto
Numlock = off
Files = 30
Buffershigh = 30, 0
Fcbshigh =
Lastdrivehigh = N
Stackshigh = 9,256
Computer 2, using UMBPCI. SYS:
Device = D:/DOS/echo. sys L/O/A/D/I/n/g config. sys...
Device = D:/DOS/echo. sys
Device = D:/DOS/UMBPCI. sys
Device = D:/DOS/hiram.exe
Devicehigh = D:/DOS/himem. sys
Devicehigh = D:/DOS/setver.exe
Devicehigh = D:/DOS/ifshlp. sys
Devicehigh = D:/DOS/vide-cdd.sys/D: IDE-CD
Shell = D:/DOS/command.com/P/E: 640
Set temp = E:/temp
Set TMP = E:/temp
Accdate = C + D + E +
DOS = high, umb, auto
Country = 086
Numlock = off
Fileshigh = 30
Buffershigh = 30, 0
Stackshigh = 9,256
Lastdrivehigh = N