![]() |
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疑难解答 & 问题讨论 (解答室) » Thanks to all the DOS experts for setting up this forum, I have a question to ask |
| Printable Version 942 / 6 |
| Floor1 闪猛 | Posted 2002-12-05 00:00 |
| 中级用户 Posts 69 Credits 327 | |
|
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 |
|
| Floor2 MYS | Posted 2002-12-06 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
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. |
|
| Floor3 闪猛 | Posted 2002-12-06 00:00 |
| 中级用户 Posts 69 Credits 327 | |
|
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. |
|
| Floor4 MYS | Posted 2002-12-06 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
This is a bit troublesome to explain clearly.
FreeDOS has a FINDCDROM program; maybe it can come in handy. |
|
| Floor5 langhua | Posted 2002-12-07 00:00 |
| 银牌会员 Posts 461 Credits 1,225 | |
|
I think it's called FINDCD!!!
Add another batch file, and it can be done. Is this what the poster above meant??? |
|
| Floor6 闪猛 | Posted 2002-12-07 00:00 |
| 中级用户 Posts 69 Credits 327 | |
|
But I don't know how to use the FINDCD command?
|
|
| Floor7 ko20010214 | Posted 2003-07-04 00:00 |
| 版主 Posts 1,628 Credits 7,296 | |
|
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. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |