![]() |
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-12 21:16 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » How can I automatically switch to the CD-ROM drive letter after booting? |
| Printable Version 1,624 / 11 |
| Floor1 xp2002_xp | Posted 2003-07-06 00:00 |
| 初级用户 Posts 17 Credits 157 | |
|
I'm a newbie and don't know DOS very well.
I want to make a boot disk to serve as the boot files for a CD, so that after the machine starts up it can automatically switch to the CD-ROM drive letter. How should the batch file be written? What other files are needed on the disk? Please take the time to answer this, thank you!! |
|
| Floor2 如是大师 | Posted 2003-07-06 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
No files are needed at all... as long as the batch file loads the CD-ROM drive at startup, that's enough.
I've talked about it in this section before, please look for it. Thanks... If you really can't find it, I'll explain it again... |
|
| Floor3 xp2002_xp | Posted 2003-07-06 00:00 |
| 初级用户 Posts 17 Credits 157 | |
|
Thank you, master!
I really can't find it. Please explain it after all. Please be detailed, I only know how to use common commands like format, fdisk, cd, etc. Thanks! |
|
| Floor4 如是大师 | Posted 2003-07-06 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
I think this has already been covered in the boot disk section, right...
|
|
| Floor5 电吉入侵 | Posted 2003-07-06 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
In the autoexec.bat on the win98 boot disk, change the line set cdrom= to %cdrom%:
|
|
| Floor6 Wengier | Posted 2003-07-06 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
The following is quoted from 电吉入侵 at 2003-7-6 19:41:59: That won't work. That boot disk doesn't have the %CDROM% variable. My Super MS-DOS 7.10 boot disk does have the %CDROM% variable... for details, please see the "DOS Boot Disk" section. |
|
| Floor7 wglwx | Posted 2003-07-07 00:00 |
| 高级用户 Posts 187 Credits 616 | |
|
This is a repeated question, and I've already replied over there. The content is as follows:
If you already know how to use a boot floppy to make a bootable CD, and only 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 to the end of the line with MSCDEX.EXE in AUTOEXEC.BAT on the boot floppy (X can be replaced with another letter). Note that CONFIG.SYS should contain this line: LASTDRIVE=Z This method is simple and easy to use, recommended for beginners. 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 more line at the end of AUTOEXEC.BAT on the boot floppy: X: (the first method) or %CDROM%: (the second method) Then after booting, you can enter the CD-ROM drive letter (of course, the drive letter of the first CD-ROM drive). You can test it with a floppy disk first, and burn the CD after it works. If you still don't know how to use a boot floppy to make a bootable CD, then first look through the old posts from before; after you learn that, do the above. |
|
| Floor8 电吉入侵 | Posted 2003-07-07 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
The following is quoted from Wengier at 2003-7-6 19:58:22: How could it not have it? Wengier, look more carefully. I can use %cdrom%: to enter the CDROM just by deleting the set cdrom= line at the end. |
|
| Floor9 xp2002_xp | Posted 2003-07-07 00:00 |
| 初级用户 Posts 17 Credits 157 | |
|
It really works now!
电吉入侵, thank you!!! Thanks, everyone! |
|
| Floor10 xp2002_xp | Posted 2003-07-07 00:00 |
| 初级用户 Posts 17 Credits 157 | |
|
Impressive!!! Impressive!!!
|
|
| Floor11 Wengier | Posted 2003-07-08 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
The %CDROM% variable in that boot disk is completely preset, and not obtained directly at all...
:do_shift set cdrom=%2 shift That's right, isn't it! And this will reduce compatibility. |
|
| Floor12 电吉入侵 | Posted 2003-07-08 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
Shouldn't it come from LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM% here?
Wengier, take a look and see if that's the case. Will this cause compatibility problems? But why did Microsoft remove this variable at the end... But that findcd of yours is still pretty useful (I'm using it^^) |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |