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-06-26 06:27
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Please give an introduction View 870 Replies 5
Original Poster Posted 2002-12-03 00:00 ·  中国 河南 郑州 联通
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
How can I use config.sys and autoexec.bat to make different configurations selectable at startup?
The kind with a selection menu.
For example, I can choose whether to load emm386.exe, etc....
简单就是美
Floor 2 Posted 2002-12-03 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
In CONFIG.SYS, just use commands like MENUITEM.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2002-12-03 00:00 ·  中国 河南 郑州 联通
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
But I don't know how to use it? The parameters......
简单就是美
Floor 4 Posted 2002-12-03 00:00 ·  中国 广东 广州 增城区 电信
元老会员
★★★
Credits 1,468
Posts 407
Joined 2002-10-21 00:00
23-year member
UID 34
Gender Male
From 广州
Status Offline
You can try the example I made below:
config.sys file:

MENUITEM=CD-ROM,Start computer with CD-ROM support ...
MENUITEM=CDROM_SCSI,Start computer with CD-ROM and SCSI support ...
MENUDEFAULT=CD-ROM,30 ;set the menu's default option and wait time


DEVICE=Himem.sys /testmemff
DEVICE=Umbpci.sys
DOS=high,umb,auto
DEVICEHIGH=Vide-cdd.sys /D:mscd001
DEVICEHIGH=Ramdrive.sys /E 5120
SHELL=COMMAND.COM /f /p


DEVICE=Himem.sys /testmemff
DOS=high,umb,auto
DEVICEHIGH=Vide-cdd.sys /D:mscd001
DEVICEHIGH=Ramdrive.sys /E 5120
SHELL=COMMAND.COM /f /p


SET PATH=c:\;c:\dos;c:\windows;c:\windows\command;c:\windows.000;C:\windows.000\command;C:\winnt\system32
SET DIRCMD=/OGN /4
SET PROMPT=$P$G
FILESHIGH=30
BUFFERSHIGH=10
STACKSHIGH=9,256
LASTDRIVEHIGH=z

autoexec.bat file:
@ECHO OFF
GOTO %CONFIG%
:CD-ROM

........ ;the contents you want to load

GOTO END

:CDROM_SCSI

........ ;the contents you want to load

:END


The others are some menu configuration commands, such as SUBMENU and MENUCOLOR, used to set submenus and the text color and background color of the menu.
欢迎大家观临我的个人主页:

http://dosdiy.bluepc.com.cn/
http://dosdiy.ys168.com/


EMAIL: lydong@china.com.cn lydong@yeah.net
----------------------------------------------
Floor 5 Posted 2002-12-03 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Take a look at the config.sys and autoexec.bat on the Win98 boot disk for reference.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 6 Posted 2003-07-04 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
First learn how to ask a question properly.
Make your post title better.
For posts with this kind of title, there may only be these three outcomes in the future:
1。No one pays any attention to it. (This is the best case.)
2。It gets moved to the off-topic section.
3。It gets deleted.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Forum Jump: