![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-14 03:03 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » [Share] Explanation of the Configuration File of the config System |
| Printable Version 31,208 / 243 |
| Floor1 如是大师 | Posted 2003-05-09 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
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。。。。 |
|
| Floor2 红色狂想 | Posted 2003-05-09 00:00 |
| 金牌会员 Posts 1,501 Credits 4,289 From 河南省 | |
|
All right, that's it, a little bit with each reply, short and to the point, let everyone read it slowly!
|
|
| Floor3 如是大师 | Posted 2003-05-09 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
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.。。。】 |
|
| Floor4 红色狂想 | Posted 2003-05-09 00:00 |
| 金牌会员 Posts 1,501 Credits 4,289 From 河南省 | |
|
I type even slower than you do, so please forgive me too!
|
|
| Floor5 如是大师 | Posted 2003-05-09 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
Hehe。。。。。。I'm very tired today.。。。I'll post more tomorrow。。
|
|
| Floor6 treeice | Posted 2003-05-10 00:00 |
| 初级用户 Posts 2 Credits 109 | |
|
It feels a bit uncomfortable to read; Master Rushi, are you trying to whet people's appetite????
|
|
| Floor7 如是大师 | Posted 2003-05-10 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
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。。
|
|
| Floor8 jiuzuihou | Posted 2003-05-10 00:00 |
| 初级用户 Posts 4 Credits 121 | |
|
Hope you can keep going, don't get stuck halfway no matter what 1!
|
|
| Floor9 如是大师 | Posted 2003-05-11 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
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. |
|
| Floor10 如是大师 | Posted 2003-05-11 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
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. |
|
| Floor11 米高佳 | Posted 2003-05-11 00:00 |
| 初级用户 Posts 5 Credits 127 | |
|
What do you use to edit it? I've been reading for half the day and still don't understand
|
|
| Floor12 如是大师 | Posted 2003-05-11 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
config.sys is a text file and can be edited, created, and modified with any text editor.
I already explained this above.。。。 |
|
| Floor13 如是大师 | Posted 2003-05-12 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
I hope everyone can give some comments after reading this, to encourage me to keep writing。。thank you.。。。
|
|
| Floor14 红色狂想 | Posted 2003-05-12 00:00 |
| 金牌会员 Posts 1,501 Credits 4,289 From 河南省 | |
|
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!
|
|
| Floor15 fengxin32 | Posted 2003-05-12 00:00 |
| 初级用户 Posts 15 Credits 159 | |
|
I suggest Master Rushi integrate it all and make a complete version that's convenient to download.
|
|
| 1 2 3 4 … 17 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |