中国DOS联盟论坛

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-13 20:15
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Problems with config.sys
Printable Version  1,713 / 5
Floor1 waffle Posted 2003-11-22 00:00
中级用户 Posts 37 Credits 230
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?
Floor2 waffle Posted 2003-11-24 00:00
中级用户 Posts 37 Credits 230
Bump myself, really want to figure out this problem.
Floor3 pfox Posted 2003-11-25 00:00
银牌会员 Posts 446 Credits 1,451
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
Floor4 waffle Posted 2003-11-25 00:00
中级用户 Posts 37 Credits 230
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?
Floor5 龙王 Posted 2003-11-25 00:00
银牌会员 Posts 334 Credits 1,186
Thanks for the link from the person above. I have a new understanding of . I'll give it a try.
Floor6 hujintao Posted 2006-08-13 09:36
初级用户 Posts 21 Credits 74
In the example on floor 3, will [NO-CD] load the configuration of [common]? How to get clean DOS
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023