中国DOS联盟论坛

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-10-27 02:27
47,815 topics / 349,928 posts / today 0 new / 48,289 members
DOS启动盘 & LOGO技术 (启动盘室) » A question for everyone about booting from CD
Printable Version  774 / 2
Floor1 1337 Posted 2004-01-10 00:00
初级用户 Posts 3 Credits 114
I originally wanted to burn a boot disk onto a CD, so I wouldn’t have to be so strapped for that 1.44M of space anymore.

Since during operation I need to use some files on the CD, like NTFSPRO and so on,
I first run FindCD, and then use %CDROM%\DOSTools\NTFSPRO\NTFSPRO to run NTFSPRO.
But then this problem came up. Because I have 2 optical drives at home (E and F), if the CD is in drive E, there is no problem and it runs normally.
But if it is in drive F, then this appears:
General failure reading drive E
Abort,Retry,Fail?
When this problem came up I didn’t think much of it, and thought that I just needed to use
:LOOP
IF EXIST %CDROM%\1337 GOTO NEXT (the 1337 here is a filename in the root directory of the CD)
GOTO NEXT_DRV (and NEXT_DRV here is used to add 1 to the CDROM variable, that is, if it was originally E then after NEXT_DRV it sets CDROM to F, and then executes GOTO LOOP)

I originally thought that would be fine, but because there is no disc in drive E, it still shows
General failure reading drive E
Abort,Retry,Fail?
After that I booted it once in a virtual machine (there are also 2 optical drives in the VM) and found that as long as I press A (that is, About), it can solve this problem.
So I changed IF EXIST %CDROM%\1337 GOTO NEXT to ECHO A|IF EXIST %CDROM%\1337 GOTO NEXT
But it was still the same old problem, so I’d like to ask all of you big brothers and big sisters for help. I’d be extremely grateful. Thanks.
Floor2 1337 Posted 2004-01-10 00:00
初级用户 Posts 3 Credits 114
The problem has already been solved. I was just looking at the Super Boot Disk and suddenly remembered that there is also a program called DREADY.
So in the end I added this line in it:
DREADY %CDROM%
IF ERRORLEVEL 1 GOTO NEXT_DRV
And that solved the problem. Thanks, everyone.
Floor3 dos时代菜鸟 Posted 2004-01-10 00:00
初级用户 Posts 216 Credits 672
It can be solved by checking whether the optical drive is usable. Just use a little program like ready.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023