![]() |
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-15 23:09 |
47,813 topics / 349,903 posts / today 1 new / 48,258 members |
| DOS疑难解答 & 问题讨论 (解答室) » Please give an introduction |
| Printable Version 911 / 5 |
| Floor1 Michael | Posted 2002-12-03 00:00 |
| 钻石会员 Posts 3,041 Credits 10,056 | |
|
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.... |
|
| Floor2 Wengier | Posted 2002-12-03 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
In CONFIG.SYS, just use commands like MENUITEM.
|
|
| Floor3 Michael | Posted 2002-12-03 00:00 |
| 钻石会员 Posts 3,041 Credits 10,056 | |
|
But I don't know how to use it? The parameters......
|
|
| Floor4 Lydong | Posted 2002-12-03 00:00 |
| 元老会员 Posts 407 Credits 1,468 From 广州 | |
|
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 /testmem ffDEVICE=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 /testmem ffDOS=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. |
|
| Floor5 MYS | Posted 2002-12-03 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
Take a look at the config.sys and autoexec.bat on the Win98 boot disk for reference.
|
|
| Floor6 ko20010214 | Posted 2003-07-04 00:00 |
| 版主 Posts 1,628 Credits 7,296 | |
|
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. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |