![]() |
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-18 09:48 |
47,814 topics / 349,907 posts / today 0 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » (Closed) How to make the CD - ROM drive letter that the boot disk directly boots? |
| Printable Version 2,558 / 6 |
| Floor1 乐天派 | Posted 2002-11-14 00:00 |
| 初级用户 Posts 9 Credits 137 | |
|
I want the boot disk to directly boot to the drive letter of the optical drive and automatically run a bat file, that is, the virtual drive letter is CDROM
[ Last edited by willsort on 2005-10-27 at 14:13 ] |
|
| Floor2 MYS | Posted 2002-11-14 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
You can check the autoexec.bat file in the WIN98 boot disk, and you can achieve it by using the CDROM environment variable inside it.
|
|
| Floor3 乐天派 | Posted 2002-11-14 00:00 |
| 初级用户 Posts 9 Credits 137 | |
|
But I don't know how to modify the environment variables of CDROM. Can you give me some pointers?
|
|
| Floor4 MYS | Posted 2002-11-14 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
No need to modify the CDROM variable. If you boot with a WIN98 boot disk, the CDROM variable should be the drive letter of the CDROM, and you can just reference it in the batch file. For example, if you want to run A.EXE in the BIN folder on the CD, you can use %CDROM%:\BIN\A.EXE in the batch file.
It should be noted that CDROM must be in uppercase, not lowercase, otherwise the reference will not be correct. Correctly, the above should be: %CDROM%:\BIN\A.EXE |
|
| Floor5 Wengier | Posted 2002-11-14 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
If it is not the MS-DOS 7.10 boot disk that comes with Win98, you can use tools like FINDCD to find the current CD-ROM drive letter.
|
|
| Floor6 乐天派 | Posted 2002-11-15 00:00 |
| 初级用户 Posts 9 Credits 137 | |
|
I don't know which line to add for %CDROM%\*. I want to make a ghost recovery disk.
I can only get to this point: Create g.bat Content: @echo off cd h: h is my CD - ROM ghost.exe -clone,mode=pload,src=98.GHO:1,dst=1:1 -sure -rb Add in the 98 boot disk autoexec.bat: copy g.bat %RAMD%:\ > NUL Copy g.bat to the floppy disk and make an image for burning. Boot from the burned CD - ROM to virtual A:\g and press Enter. It succeeds. Hehe~~ The simple - minded person can only use the simple method. Thank you two moderators :) |
|
| Floor7 ko20010214 | Posted 2002-11-15 00:00 |
| 版主 Posts 1,628 Credits 7,296 | |
|
cd h:
Change to cd %CDROM% That's it. As for copy a:\g.bat %RAMD%:\ >NUL, it's redundant. Because you finally execute g.bat in the virtual A drive, not in your virtual hard disk. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |