China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-14 03:52
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Share] Explanation of the Configuration File of the config System View 31,217 Replies 243
Original Poster Posted 2003-05-09 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
When an MSdos system starts, it first reads IO、sys--then, in order, msdos、sys----config。sys--command、com--autoexec、bat。。。。。
Of course, at present most of the people in this section still can't boldly lay hands on core startup files like IO、sys the way webmaster wengier can。。。。Then let's gallop around and DIY freely in the config file instead。。
When a PC starts, the system will automatically look for the file config.sys. If it doesn't exist, the system runs in the default way, but in most cases that default way is not the most suitable for system use, so we should set up the system startup environment, such as setting the use of extended memory, loading the CD-ROM drive, USB drivers, etc.

   When your system has errors such as the system not being usable, not enough memory for programs, device not found, sound card cannot be driven, unable to connect to the network, and so on, making reasonable changes to config.sys may solve more than half of the problems.

  config.sys is a text file, and it can be edited, created, and modified with any text editor. (Just create a text file, write in the contents, then rename it to config、sys.) Of course, if you give the same contents some other name, like autoexec、sys or something。。。the system definitely won't recognize it。。Hehe。。。。If you add, change, or delete any configuration command in the config.sys file, that change will only take effect the next time DOS starts. Everyone should remember this. The config file is only loaded and executed when the system initializes。。。。



弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 2 Posted 2003-05-09 00:00 ·  中国 河南 驻马店 联通
金牌会员
★★★★
龙哥DOS
Credits 4,289
Posts 1,501
Joined 2003-02-23 00:00
23-year member
UID 983
Gender Male
From 河南省
Status Offline
All right, that's it, a little bit with each reply, short and to the point, let everyone read it slowly!
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
C++ ☆☆☆ 中国DOS联盟成员 ☆☆☆ C++
C++ ★★★ 爱提问的红色狂想 ★★★ C++
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
Floor 3 Posted 2003-05-09 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Above I mentioned that when DOS starts, before executing the automatic batch commands, it automatically searches for the config、sys file in the root directory where the startup files are located.。。If this file exists, the system will read it into memory。。and interpret each command in the file line by line.
(Everyone must remember the four words “interpret line by line”.) It sets the current DOS system configuration。。。
Generally speaking, the config、sys file is an ASCLL text file.。。Next we'll talk about some common commands in the config file and their functions.
1,check command
The BREAK command is used to instruct DOS to keep checking whether the user has pressed the Ctrl_Break key。。
Its general format is: BREAK=ON/OFF
When break=on, the DOS system checks Ctrl_Break at any time... In this state, the user can press
Ctrl+Break (that famous CTRL+C) to exit the currently running program process.
When break=off, the DOS system only checks whether the user has pressed Ctrl+Break when the following conditions are met.
(1)standard output operation;
(2)standard input operation;
(3)standard printing operation;
(4)standard auxiliary operation;
2,buffer command
After DOS starts, BUFFERS establishes disk buffers in system memory. A disk buffer uses a certain area of memory, and DOS uses it for data operations. A disk buffer is a memory area used to store data read from disk or data written to disk. When DOS reads or writes a record, it first checks whether the data block containing that record is already in the disk buffer. If it is not, it reads that data block from the disk into the disk buffer, then passes the record to the application program; if the data is already in the disk buffer, then it does not need to be read from disk, and the data is passed directly to the application program. Since reading data from disk is a relatively time-consuming operation, increasing the disk buffer can save a lot of disk-reading time. But note that increasing the disk buffer takes up memory, thus reducing the memory available to application programs, and this will inevitably increase the number of disk read/write operations, causing software to run more slowly or even fail to run. Therefore, the disk buffer value is not the bigger the better; the optimal number of disk buffers should be determined according to the user's machine specs and the types of programs usually run. The general format of the buffers command is:
BUFFERS=an integer between 1-99
Its default value is 2, ibmdos is 3.

【Because I type rather slowly, please forgive me if there are places that are not thorough enough.。。。】






弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 4 Posted 2003-05-09 00:00 ·  中国 河南 驻马店 联通
金牌会员
★★★★
龙哥DOS
Credits 4,289
Posts 1,501
Joined 2003-02-23 00:00
23-year member
UID 983
Gender Male
From 河南省
Status Offline
I type even slower than you do, so please forgive me too!
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
C++ ☆☆☆ 中国DOS联盟成员 ☆☆☆ C++
C++ ★★★ 爱提问的红色狂想 ★★★ C++
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
Floor 5 Posted 2003-05-09 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Hehe。。。。。。I'm very tired today.。。。I'll post more tomorrow。。
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 6 Posted 2003-05-10 00:00 ·  中国 浙江 宁波 宁海县 电信
初级用户
Credits 109
Posts 2
Joined 2003-05-07 00:00
23-year member
UID 1920
Gender Male
Status Offline
It feels a bit uncomfortable to read; Master Rushi, are you trying to whet people's appetite????
Floor 7 Posted 2003-05-10 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Sorry about that.。。。It really wasn't intentional. If you all feel it's not satisfying to read.。。。。I have to think slowly and write slowly, after all I've put this aside for a long time.。。。。I'll definitely do my best。。
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 8 Posted 2003-05-10 00:00 ·  中国 四川 成都 教育网
初级用户
Credits 121
Posts 4
Joined 2003-05-09 00:00
23-year member
UID 1966
Gender Male
Status Offline
Hope you can keep going, don't get stuck halfway no matter what 1!
Floor 9 Posted 2003-05-11 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
3,set the number of open files
Generally speaking, the FILES command and the FCBS command both set the number of files the DOS system can process at the same time. When we want to install some games (like DD's Legend of Sword and Fairy), we may have to copy or extract a large number of small files, possibly several thousand, and then we can increase the upper limit of FILES. That will let DOS improve the speed of copying or extracting. But remember one thing: this takes up a lot of memory.
The FILES command can only control the number of files that the file manager (word) can open at the same time; it does not affect the number of simultaneously open files controlled by file control blocks (FCB).
The general format of the command is:
FILES=(an integer between 8-255) its default value is 8
FCBS=(an integer between 1-255),(an integer between 0-255) default value is 40,0
(FCBS=)The number in front must be greater than the number behind it. The first number specifies the maximum number of files that file control blocks (FCB) can open at the same time; the second number specifies, when file control blocks (FCB) are opening the corresponding number of files at the same time, the number of files that the DOS system may not automatically close. If an error is caused because DOS closes an FCBS file, the first value can be increased. If the FCBS command statement is used in the config file, DOS's resident space will increase.
Let me also tell everyone one more thing here: most application software uses FILES to manage open files.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 10 Posted 2003-05-11 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
4,driver loading
We know that all kinds of external devices on a PC have corresponding device drivers, and the system needs to load their drivers when using those devices. The DEVICE command does this job. It loads all device drivers other than the devices supported by the standard device drivers (floppy drives, hard disks, keyboards and other input/output devices) that we need when running DOS
. It can also load driver files written by ourselves.
Its general command format is: DEVICE=drive letter/path(folder)/device driver file
This command is a very distinctive command in the config file, because it can be used multiple times to specify drivers for multiple devices with different functions. In some cases we can add HIGH after the DEVICE command, so as to load the device driver into high memory and save DOS conventional memory.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 11 Posted 2003-05-11 00:00 ·  中国 吉林 长春 联通
初级用户
Credits 127
Posts 5
Joined 2003-05-10 00:00
23-year member
UID 1982
Gender Male
Status Offline
What do you use to edit it? I've been reading for half the day and still don't understand
Floor 12 Posted 2003-05-11 00:00 ·  中国 湖北 武汉 汉阳区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
config.sys is a text file and can be edited, created, and modified with any text editor.
I already explained this above.。。。
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 13 Posted 2003-05-12 00:00 ·  中国 湖北 武汉 汉阳区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
I hope everyone can give some comments after reading this, to encourage me to keep writing。。thank you.。。。
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 14 Posted 2003-05-12 00:00 ·  中国 河南 驻马店 联通
金牌会员
★★★★
龙哥DOS
Credits 4,289
Posts 1,501
Joined 2003-02-23 00:00
23-year member
UID 983
Gender Male
From 河南省
Status Offline
I think for DOS newbies, it's still a bit hard to understand; but for people who already know something about DOS, it's very satisfying to read! The solution is to explain every detail as clearly as possible, and write this article with the mindset of a DOS newbie. Only then will all the DOS newbies really get something from it!
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
C++ ☆☆☆ 中国DOS联盟成员 ☆☆☆ C++
C++ ★★★ 爱提问的红色狂想 ★★★ C++
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
Floor 15 Posted 2003-05-12 00:00 ·  中国 四川 成都 教育网
初级用户
Credits 159
Posts 15
Joined 2003-05-08 00:00
23-year member
UID 1934
Gender Male
Status Offline
I suggest Master Rushi integrate it all and make a complete version that's convenient to download.
1 2 3 17 Next ›
Forum Jump: