Command and configuration of the config. SYS file

Source: Internet
Author: User

Config. sys is an important file in the dossystem. Its Configuration directly affects the usage and efficiency of the system. If not properly configured, there may be many Program Cannot 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: sets or clears the extended Ctrl + C check.
Usage: Break = on | off

Buffers/buffershigh: allocates 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]
Among them, high and low indicate using HMA or not using HMA, umb and noumb indicate using umb or not using umb, auto or noauto indicate automatic or non-automatic configuration of the system, 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 to enable the numlock when the lamp 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: specifies 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

You may try it. I believe you will also make a good config. SYS file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.