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:26
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Thanks to all the DOS experts for setting up this forum, I have a question to ask View 879 Replies 6
Original Poster Posted 2002-12-05 00:00 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 327
Posts 69
Joined 2002-12-01 00:00
23-year member
UID 377
Gender Male
Status Offline
With Windows running rampant today, it's not easy to have a forum about DOS. I sincerely thank all the moderators and super moderators for your efforts; they have helped a newbie like me improve a lot.
Recently I've been making a bootable CD that integrates many DOS tools, and I've run into trouble determining the CD-ROM drive letter. To be specific, I mean like a Windows installation CD: no matter what your CD-ROM drive letter is, it can automatically load the CD-ROM driver and install the system. I don't know how that is implemented. Right now I only know how to use the following command in AUTOEXEC.BAT to set the CD-ROM drive letter to X:
LH MSCDEX /D:MSCD000 /L:X
Its drawback is that if there are two or more CD-ROM drives (I happen to have one CD-ROM and one CD-RW), the boot CD can only be used in the primary CD-ROM drive; if run from the secondary drive it says it can't find files. Please advise, thanks
Floor 2 Posted 2002-12-06 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
You can add two sections to the batch file:
The first section sets the second CD-ROM drive letter according to the first CD-ROM drive letter.
The second section uses if exist to determine which CD contains a certain specific file, and then performs the corresponding operation.
我的网志
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 3 Posted 2002-12-06 00:00 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 327
Posts 69
Joined 2002-12-01 00:00
23-year member
UID 377
Gender Male
Status Offline
I don't understand what you mean, it's too deep for me. For a newbie like me, I saw the following command on another forum, and I only half understand it:
LH %ramd%:\MSCDEX.EXE /D:mscd002 /L:%CDROM%
%CDROM%
It would be best if you could explain how the first "Install Windows98" option on the Windows98 installation CD is implemented when booted under DOS, then I could try following that.
Floor 4 Posted 2002-12-06 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
This is a bit troublesome to explain clearly.
FreeDOS has a FINDCDROM program; maybe it can come in handy.
我的网志
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 5 Posted 2002-12-07 00:00 ·  中国 北京 联通
银牌会员
★★★
Credits 1,225
Posts 461
Joined 2002-10-22 00:00
23-year member
UID 39
Gender Male
Status Offline
I think it's called FINDCD!!!
Add another batch file, and it can be done.

Is this what the poster above meant???
Floor 6 Posted 2002-12-07 00:00 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 327
Posts 69
Joined 2002-12-01 00:00
23-year member
UID 377
Gender Male
Status Offline
But I don't know how to use the FINDCD command?
Floor 7 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
Learn how to ask questions first.
Change your post title to something better.
For posts with titles like this, in the future there may be only these three possible outcomes:
1。No one pays any attention. (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: