![]() |
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 20:31 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Automatically switch to the CD-ROM drive letter after boot finishes? |
| Printable Version 755 / 4 |
| Floor1 yiran | Posted 2003-07-24 00:00 |
| 初级用户 Posts 19 Credits 187 | |
|
How can I automatically switch to the drive letter where the CD-ROM drive is after autoexec.bat finishes, instead of A:>?
|
|
| Floor2 如是大师 | Posted 2003-07-26 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
Just set the CD-ROM drive letter in the batch file, then use the relevant statement to switch to it.
|
|
| Floor3 yiran | Posted 2003-07-26 00:00 |
| 初级用户 Posts 19 Credits 187 | |
|
I tried using this in the batch file:
%CDROM%: but it didn't work. How can I switch to it? |
|
| Floor4 wglwx | Posted 2003-07-26 00:00 |
| 高级用户 Posts 187 Credits 616 | |
|
This is a repeated question; I've already replied to it many times.
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 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: at the end of the line with MSCDEX.EXE in AUTOEXEC.BAT on the boot floppy, add /L:X (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; 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 and PWIN98's boot disk. After deciding which method to use, add one more 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 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, learn that, and then do the above. After saying so much, if you still don't understand, then use the simplest method: Use PWIN98's boot floppy, and add one line at the end of AUTOEXEC.BAT on the boot floppy: %CDROM%: Then use this boot floppy to make a bootable CD. |
|
| Floor5 Jnwei1202 | Posted 2003-07-27 00:00 |
| 初级用户 Posts 33 Credits 197 | |
|
But what if there is more than one CD-ROM drive! Then this still can't automatically find which drive the disc is in!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |