CONFIG. SYS file command and configuration _dos/bat

Source: Internet
Author: User
Tags switches
CONFIG. SYS is an important file in a DOS system, and its configuration directly affects the use and efficiency of the system. If improperly configured, many programs may not work correctly. Therefore, it is very necessary and important to correctly and rationally configure Config.sys files. Let me tell you about the commands in Config.sys and how to configure them.

CONFIG. The commands in SYS:
Note: All commands with high end (such as devicehigh) are transferred to the UMB (upper memory), but some such commands (such as Fileshigh) must be used in MS-DOS 7.x versions.

Accdate: Specifies whether the date on which the file is last accessed is logged for each drive.
Usage: accdate= drive 1+|-[drive 2+|-] ...
For example: accdate=c+ d+ e+ will record the date the file was last accessed in the C,d,e disk.
This command is only available 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 dependent cache]

Device/devicehigh: Loads the specified device driver into memory.
Usage: device/devicehigh filename [parameters]
Where the filename is the full path to the file, such as C:\DOS\HIMEM. SYS.

DOS: For DOS system configuration, such as whether to use HMA (high memory area).
Usage: dos=[high| Low][,umb|,noumb][,auto|,noauto][,single]
Among them, high and low indicate that using HMA or not using Hma,umb and NOUMB indicates that the system is automatically configured or not configured with either Umb,auto or Noauto, and single represents the use of one-mode dos. where Auto/noauto and single are only used in MS-DOS 7.x.

Drivparm: Sets parameters for an existing physical device.
Note: This command is used very little, I have no use, so temporarily skipped.

Fcbs/fcbshigh: Specifies the number of file control blocks (FCB) that can be opened at the same time.
Usage: The number of FCB that fcbs/fcbshigh= can open at the same time.
Note: Because the FCB is mainly used in DOS 1.x, for the high version, so the system can be automatically configured.

Files/fileshigh: Specifies the number of files that can be accessed concurrently.
Usage: The number of files that files/fileshigh= can access at the same time.
Note: The general Files/fileshigh of the set value of around 30 more appropriate.

Install/installhigh: Used to load TSR (memory resident program).
Usage: install/installhigh= filename [parameters]
such as: Installhigh=c:\dos\doskey.com/appedit

Lastdrive/lastdrivehigh: Specifies the last valid drive letter of the drive that can be accessed.
Usage: lastdrive= Drive letter
If Lastdrive=f will set F to the last valid drive letter.

NumLock: Specifies whether the specified light is turned on at startup NumLock.
Usage: numlock=on| Off

REM: adding annotations.
Usage: REM [Note string]
Note: The string in the annotation is 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 command interpreter used by DOS.
Usage: shell= filename [parameters]
NOTE: The filename defaults to Command.com, you can also specify other files, such as 4DOS.EXE.

Stack/stackhigh: Specifies the number of stacks used.
Usage: stack/stackhigh= stack count, size of each stack
Note: Usually the specified value is 9,256, which can satisfy most of the requirements.

Switches: Specify some special options.
Usage: switches=[/w] [/F] [/k] [/n] [/e[:n]]

The other is some menu configuration commands, such as Menuitem,menucolor.

There are also some non-public orders, such as logo,comment, in the MS-DOS 7.x.

Once you know the above commands, you need to talk about how to use these commands to configure the Config.sys file. The configuration of the good or bad impact on the system is very large. The following are the contents of the Config.sys file in My computer (all MS-DOS 7.10) and can be used as a reference.

Computer one, using 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=4,0
Lastdrivehigh=n
stackshigh=9,256

Computer two, 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 wish to try, I believe you will also make good Config.sys documents.

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.