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-07-24 01:35
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » Delete me, it's solved. View 2,132 Replies 9
Original Poster Posted 2006-08-23 00:57 ·  中国 陕西 榆林 电信
中级用户
★★
Credits 289
Posts 94
Joined 2006-06-06 00:00
20-year member
UID 56670
Gender Male
Status Offline
How to implement a menu that appears after booting DOS, with the following content:

1. Boot from Disk
2. Boot from CD-ROM
3. Boot from Floppy
4. Boot from USB

The method where when the corresponding menu is selected using the up and down arrow keys and then pressed Enter or when 1, 2, 3, or 4 is entered, it can boot from the corresponding disk, one simple and one good.

Don't talk about GNU or something, okay, brother, I don't know that.

[ Last edited by suiyuanye on 2006-9-21 at 12:59 ]
Floor 2 Posted 2006-08-24 13:17 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
CONFIG.SYS content
[MENU]
MENUITEM=DISK, Boot from Disk
MENUITEM=CDROM, Boot from CD-ROM
MENUITEM=FLOPPY, Boot from Floppy
MENUITEM=USB, Boot from USB
MENUCOLOR=14,1
MENUDEFAULT=DISK,20
[DISK]
........
[CDROM]
........
[FLOPPY]
........
[USB]
...........

[COMMON]
SHELL=COMMAND.COM /E:1024 /P
DOS=HIGH,UMB
FCBS=4,0
FILES=30
BUFFERS=20,0
STACKS=9,256
LASTDRIVE=Z


AUTOEXEC.BAT content
FOR %%a in (DISK CDROM FLOPPY USB) DO IF "%CONFIG%"=="%%a" GOTO %%a
:DISK
......
GOTO END

:CDROM
......
GOTO END

:FLOPPY
......
GOTO END

:USB
......
GOTO END

:END
Floor 3 Posted 2006-09-19 03:07 ·  中国 陕西 榆林 神木市 电信
中级用户
★★
Credits 289
Posts 94
Joined 2006-06-06 00:00
20-year member
UID 56670
Gender Male
Status Offline
:
:DISK
......What is written here??
GOTO END

:CDROM
......What is written here??
GOTO END

:FLOPPY
......What is written here??
GOTO END

:USB
......What is written here??
GOTO END

:END
Floor 4 Posted 2006-09-20 06:19 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 5 Posted 2006-09-20 21:07 ·  中国 广东 佛山 广东睿江科技有限公司
初级用户
Credits 74
Posts 30
Joined 2006-06-01 17:04
20-year member
UID 56385
Status Offline
Reply to floor 3, which is to write the command that each menu item should run;
Reply to floor 4, all are DOS internal commands, no need for anything.
Floor 6 Posted 2006-09-21 05:55 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
Originally posted by fastslz at 2006-8-24 01:17 PM:
CONFIG.SYS content

MENUITEM=DISK, Boot from Disk
MENUITEM=CDROM, Boot from CD-ROM
MENUITEM=FLOPPY, Boot from Floppy
MENUITEM=USB, Boot from USB
MENUCOLOR=14,1
MENUDEFAULT=DISK,20


Bro, can this method you mentioned boot from the CD-ROM?
Floor 7 Posted 2006-09-22 08:00 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Then you write it well, okay? I haven't heard that DOS internal commands combined with CONFIG.SYS can start floppy disks, hard disks, CDs, USB!
Floor 8 Posted 2006-09-22 12:02 ·  中国 陕西 榆林 电信
中级用户
★★
Credits 289
Posts 94
Joined 2006-06-06 00:00
20-year member
UID 56670
Gender Male
Status Offline
The person upstairs, I'm using EBOOT. It can't be achieved by just using DOS internal commands together with CONFIG.SYS. Thank you all.
Floor 9 Posted 2006-09-23 07:25 ·  中国 北京 丰台区 联通
元老会员
★★
Credits 840
Posts 294
Joined 2003-09-27 00:00
22-year member
UID 10424
Gender Male
Status Offline
Does EasyBoot support booting from USB?
Never heard of it
Floor 10 Posted 2006-09-23 07:39 ·  中国 浙江 台州 电信
管理员
★★★★
DOS非常爱好者
Credits 6,215
Posts 2,601
Joined 2006-01-20 13:00
20-year member
UID 49256
Status Offline
Solved the problem and then deleted the thread? I don't understand the LZ's meaning...
Forum Jump: