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-13 19:12
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Problems with config.sys View 1,712 Replies 5
Original Poster Posted 2003-11-22 00:00 ·  中国 江苏 苏州 电信
中级用户
Credits 230
Posts 37
Joined 2003-05-24 00:00
23-year member
UID 2394
Gender Male
Status Offline
Suppose there is a config.sys as follows:


submenu=MS,MS software
submenu=IBM,IBM software
menudefault=MS,30
......

The options under the MS menu all use some part of the same configuration (for example, called MScommon), and the options under the IBM menu also need to use another part of the same configuration (for example, called IBMcommon, but MScommon and IBMcommon are different themselves). How should be written? Can there be several ? Does the position of matter?

Can you give an example of include?
Floor 2 Posted 2003-11-24 00:00 ·  中国 江苏 苏州 电信
中级用户
Credits 230
Posts 37
Joined 2003-05-24 00:00
23-year member
UID 2394
Gender Male
Status Offline
Bump myself, really want to figure out this problem.
Floor 3 Posted 2003-11-25 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
is shared. You can write corresponding items in the menu. Here is a simple example:

menuitem=CD-ROM, Start computer with CD-ROM support.
menuitem=CD-EMM, Start computer with CD-ROM support And USE EMM386.
menuitem=MS-CD, Start MS 's Drive from CD-ROM.
menuitem=SETUP-98, Start & SETUP Windows 98 from cd-rom.
menuitem=NO-CD, Start computer WITHOUT CD-ROM support.
menuitem=NORAM-CD, Start computer with CD-ROM but Don't without RAMDRIVE.
menuitem=SCSI-CD, Start computer with SCSI CD-ROM support.
menudefault=CD-ROM,10
menucolor=14,1


device=himem.sys /v /testmemff /q
files=60
buffers=20
stacks=9,256
dos=high,umb
lastdrive=z


devicehigh=vide-cdd.sys /D:pfcd000


device=emm386.exe ram
devicehigh=vide-cdd.sys /D:pfcd000


devicehigh=cdrom.sys /D:pfcd000




devicehigh=cdrom.sys /D:pfcd000


devicehigh=cdrom.sys /D:pfcd000


devicehigh=cdrom.sys /D:pfcd000
Floor 4 Posted 2003-11-25 00:00 ·  中国 江苏 苏州 电信
中级用户
Credits 230
Posts 37
Joined 2003-05-24 00:00
23-year member
UID 2394
Gender Male
Status Offline
Thanks for the answer from the person above. What you said is the most basic usage. I saw some content on the following webpage: http://www.imu.edu.cn/zweb/try290.htm

"The COMMON block belongs to the common area, used to define commands that all configurations must execute. In the same CONFIG.SYS file, there can be multiple COMMON blocks, and the system will execute them continuously according to their appearance order.

When the CONFIG.SYS file has multiple configurations, there is generally an additional COMMON block at the bottom of the file, and this block can contain no commands. When installing some new applications, the system may attach some commands to the bottom of the CONFIG.SYS file, so that these commands can be easily added to the COMMON block at the bottom of the CONFIG.SYS."

Which expert can give an example based on these two paragraphs?
Floor 5 Posted 2003-11-25 00:00 ·  中国 河南 安阳 联通
银牌会员
★★★
Credits 1,186
Posts 334
Joined 2003-05-30 00:00
23-year member
UID 2626
Gender Male
Status Offline
Thanks for the link from the person above. I have a new understanding of . I'll give it a try.
Floor 6 Posted 2006-08-13 09:36 ·  中国 河南 商丘 中移铁通
初级用户
Credits 74
Posts 21
Joined 2006-08-09 23:15
20-year member
UID 60186
Status Offline
In the example on floor 3, will [NO-CD] load the configuration of [common]? How to get clean DOS
Forum Jump: