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 00:31
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » How to automatically switch to the CD-ROM drive letter after booting? View 1,424 Replies 5
Original Poster Posted 2003-07-06 00:00 ·  中国 山东 济宁 联通
初级用户
Credits 157
Posts 17
Joined 2003-07-06 00:00
23-year member
UID 6445
Gender Male
Status Offline
I'm a newbie and don't know much about DOS.
I want to make a boot disk to serve as the boot files for a CD,
so that after the machine boots it can automatically switch to the CD-ROM drive letter.
Question: how should the batch file be written?
What other files are needed on the disk?

Please take the time to answer, thanks!!
Floor 2 Posted 2003-07-06 00:00 ·  中国 江苏 无锡 电信
高级用户
★★
Credits 616
Posts 187
Joined 2003-04-18 00:00
23-year member
UID 1598
Gender Male
Status Offline
If you already know how to use a boot floppy to make a bootable CD, and just don't know how to automatically switch to the CD-ROM drive letter after booting,
then you only need to solve the problem of finding the CD-ROM drive letter.
There are two methods:
1. Specify the CD-ROM drive letter: add /L:X at the end of the line containing MSCDEX.EXE in AUTOEXEC.BAT on the boot floppy (X can be replaced with other letters)
This method is simple and easy to use; beginners are advised to use it.
2. Use FINDCD.EXE to find the CD-ROM drive letter. This method is a bit more complicated; you can refer to the Super Moderator's MSDOS7.10 Super Boot Disk.

After deciding which method to use, add one line at the end of AUTOEXEC.BAT on the boot floppy:
X: (first method)
or
%CDROM%: (second method)

Then after booting it will enter the CD-ROM drive letter (of course, the first CD-ROM drive letter).

If you still don't know how to use a boot floppy to make a bootable CD, then first look at the old posts from before, learn that, and then do the above.
Floor 3 Posted 2003-07-06 00:00 ·  中国 山东 济宁 联通
初级用户
Credits 157
Posts 17
Joined 2003-07-06 00:00
23-year member
UID 6445
Gender Male
Status Offline
Thanks, brother wglwx!
I already know how to use a boot floppy to make a bootable CD.
My goal is: to use this disc to boot any machine and have it automatically switch to the CD-ROM drive letter.
Question:
Can method 1 achieve this goal?
Floor 4 Posted 2003-07-06 00:00 ·  中国 江苏 无锡 电信
高级用户
★★
Credits 616
Posts 187
Joined 2003-04-18 00:00
23-year member
UID 1598
Gender Male
Status Offline
Yes.

Note:
1.There should be this line in CONFIG.SYS: LASTDRIVE=Z
2.You can test with a floppy first, and burn the CD after it succeeds.
Floor 5 Posted 2003-07-07 00:00 ·  中国 山东 济宁 联通
初级用户
Credits 157
Posts 17
Joined 2003-07-06 00:00
23-year member
UID 6445
Gender Male
Status Offline
Floor 6 Posted 2006-10-22 00:41 ·  中国 北京 中国中信股份有限公司
中级用户
★★
Credits 310
Posts 97
Joined 2004-05-26 00:00
22-year member
UID 25372
Gender Male
Status Offline
Originally posted by xp2002_xp at 2003-7-6 12:00 AM:
Thanks, brother wglwx!
I already know how to use a boot floppy to make a bootable CD.
My goal is: to use this disc to boot any machine and have it automatically switch to the CD-ROM drive letter.
Question:
Can method 1 achieve ...



Buddy, did it work or not?

Share it with us
Forum Jump: