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,218 Replies 243
Floor 31 Posted 2003-05-19 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 32 Posted 2003-05-20 00:00 ·  中国 山东 滨州 联通
高级用户
★★
Credits 948
Posts 271
Joined 2002-12-13 00:00
23-year member
UID 502
Gender Male
From sd
Status Offline
Heh, it's got quite a mysterious feel to it.:)
Floor 33 Posted 2003-05-20 00:00 ·  中国 湖北 武汉 联通
初级用户
冰客
Credits 186
Posts 16
Joined 2003-05-19 00:00
23-year member
UID 2230
Gender Male
Status Offline
Making webpages is very troublesome, understandable. I went to your webpage; once it's finished it will definitely be good. The text of that little poem of yours is too small, and my eyes aren't very good, so I can't see it very clearly.
I hope when you have time you can keep writing it. I will definitely strongly support it.
外表冷漠,内心狂热。
Floor 34 Posted 2003-05-20 00:00 ·  中国 广东 广州 神州在线
初级用户
★★
香蕉术士
Credits 317
Posts 52
Joined 2003-05-18 12:00
23-year member
UID 2231
Gender Male
Status Offline
Master Rushi, what you're writing is really too much of a tease. Hope you can continue soon, and also answer my question under the batch file section. Thanks in advance
永远支持永远支持
Floor 35 Posted 2003-05-20 00:00 ·  中国 湖北 武汉 硚口区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Got it, the font issue has already been fixed.。。。。I'll continue and finish this writeup a bit later today.。。。。。Thank you all for your concern. Sorry to have kept everyone waiting so long.。。。。。。。。。
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 36 Posted 2003-05-21 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Last time a friend asked what kind of command rem is.。。Looks like that was my oversight.。。I didn't systematically talk about the DOS commands used in the config file.。。Today I'll add a supplement.。
In DOS, some commands are specific. For example, some commands contained in command such as copy, del, type are called internal commands y instructions.。。。and there are those specific to the autoexec file.。。for,call,lh,if······and so on.。。。。
Likewise, which commands are supported in the config file? Below I will list the names one by one, and I'll leave the explanatory work to be discussed slowly later.。。。。
config configuration file command list:
ACCDATE BREAK BUFFERS
COMMENT COUNTRY DEVICE
DOS DRIVPARM FCBS
FILS INCLUDE INSTALL
LASTDRIVE LOGO MENUCOLOR
MENUDEFAULT MENUITEM NUMLOCK
REM SHELL STACKS
SUBMENU SWITCHES SET
Among them, commands such as BUFFERS,DEVICE, FCBS ,FILES,INSTALL, LASTDRIVE , STACKS can add the “HIGH” statement to use DOS extended memory. For example: DEVICEHIGH=。Of course, that is only when DOS extended memory exists.。。。。
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 37 Posted 2003-05-21 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Let me explain one point here. This explanation is being written according to the general frequency of use of the commands. In a certain sense, that means I'm explaining the ones I'm familiar with and use more often first.。。It's not arranged alphabetically according to strict academic requirements. Please forgive me.。。。Now let's continue.
7,set time and date format
Here I'll talk about a command we Chinese don't often use, COUNTRY. This is a command for setting time and date format. We all know that because of geophysical reasons, the peoples, customs, and times of various countries are not all the same, so the currencies of each country also differ. DOS defaults to using usa.。。COUNTRY can change the default time, date, and currency format.。。The format used is:
COUNTRY=(specified country code such as 001-972)There isn't one for China. So I don't remember the exact code very clearly. I basically never use this command, I only remember that E country seemed to be 044. wengier probably knows it very clearly.
8,low memory management
This is a very interesting command. The dos in DOS commands. The first dos refers to the DOS system. The second dos manages and releases low memory for application programs. This dos establishes and maintains low memory, and establishes the connection between low memory and upper memory. It can load part of the DOS system itself into umb (high memory area).
Its general format is:
DOS=HIGH\LOW\AUTO
HIGH load part of DOS into the high memory area(HMB)
LOW restrict DOS to the low memory area
AUTO automatically choose where to place DOS.
UMB maintain the connection between low memory and reserved memory.。。allowing DOS to use commands such as LOADHIGH and DEVICEHIGH to load devices or programs into high memory.
NOUMB prohibit DOS from using the high memory area. Restrict the connection between low memory and high memory.
In this command, parameters that do not generally conflict with one another can be used together; when used together, please separate them with “,”. When using the HIGH and UMB parameters, note that at minimum HIMEM.SYS should already be loaded. This command can exist anywhere in the CONFIG file.。。
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 38 Posted 2003-05-25 00:00 ·  中国 上海 电信
初级用户
Credits 107
Posts 2
Joined 2003-05-25 00:00
23-year member
UID 2398
Gender Male
Status Offline
Learning well here
Floor 39 Posted 2003-05-31 00:00 ·  中国 湖北 荆门 中移铁通
中级用户
★★
Credits 256
Posts 57
Joined 2003-05-28 00:00
23-year member
UID 2549
Gender Male
Status Offline
Is there a detailed command reference for config.sys and autoexec.bat? A table would be best, easier to read.
曾经,见过DOS 玩过DOS
后来,开了WINDOWS
现在,进来个SARS
结果,每天瘟倒死
Floor 40 Posted 2003-05-31 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'm writing it now,
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 41 Posted 2003-05-31 00:00 ·  中国 广东 广州 神州在线
初级用户
★★
香蕉术士
Credits 317
Posts 52
Joined 2003-05-18 12:00
23-year member
UID 2231
Gender Male
Status Offline
Master, I've waited until even the flowers have withered
永远支持永远支持
Floor 42 Posted 2003-05-31 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, sorry.。。I'll definitely make time to write it.。。I can't let down everyone's expectations.。。
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 43 Posted 2003-06-02 00:00 ·  中国 广东 佛山 南海区 电信
初级用户
★★
Credits 321
Posts 66
Joined 2003-05-22 00:00
23-year member
UID 2315
Gender Male
Status Offline
Do you know? Do you know? I've waited until even the flowers have withered~~~!
Floor 44 Posted 2003-06-03 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~ after putting this aside for some days, I don't remember which commands I've already covered, so let me look back through the earlier posts and continue.。。。。。
Today we'll talk about the INSTALL and INCLUDE commands. These two commands have absolutely nothing in common except that they both begin with the letter I.。。
9,install TSRs
Generally we call memory-resident programs tsr. We know that most program calls are completed through batch commands. install installs some tsr (memory-resident) programs into memory when the DOS system starts and executes the config file. At this time, execution of the install command does not go through command (the command manager) and does not need to use environment variables.
Its general format is:
INSTALL=path/TSR program
10,include command
config has a menu function, and its purpose is to configure corresponding configuration files for using the machine under different environments. This makes it unavoidable that there will be some mutually repeated command statements. And the config file stubbornly executes statements one by one in order. But if we repeat those same statements N times. I believe even the most good-tempered friend would curse “bill——damn it” once. But clever bill provided us with such a command, INCLUDE. It indicates that when an option-style setup exists in the config file, all contents of another configuration block are included in one specified configuration block. This command allows us to take groups of configuration statements commonly used by several configuration blocks and set them up as one single block. Then at the appropriate time we include that block with the INCLUDE command. This greatly reduces our repeated labor and the length of the config file.
The general format of the command is:
INCLUDE=the name of the block set to be included.


弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 45 Posted 2003-06-03 00:00 ·  中国 湖北 武汉 江夏区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Actually, this REM command was already explained earlier when forum member Migaojia asked about it, so let me sort it out again here.
11,comment command
config files in the DOS system can really vary in countless ways. In order to let users understand the meaning, principle, and even purpose of the settings in the config file, we can use the REM command in the config file to add comment statements. Such statements do not participate in execution. They merely let users more quickly understand the contents configured in the config file and the operations that are about to be carried out, and so on.。
Its general command format is:
REM comment statement。。
The rem command may be used repeatedly. The maximum number of characters after each command statement can reach 123 characters. Characters that have special meaning to DOS should be enclosed in double quotation marks.
This command is used in both .bat files and config files. In batch files(。bat files)it can be used together with the ECHO command to display the contents commented by rem. At that time ECHO is in the ON state. We can use text editors such as EDIT to browse the contents commented by the rem command. Also, a REM command without a comment can be used to add blank lines in .bat files and config files. But DOS ignores blank lines when starting, so generally this is not very meaningful.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Forum Jump: