China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-24 00:10
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » A question for everyone about booting from CD View 640 Replies 2
Original Poster Posted 2004-01-10 00:00 ·  中国 上海 宝山区 电信
初级用户
Credits 114
Posts 3
Joined 2004-01-07 00:00
22-year member
UID 15099
Gender Male
Status Offline
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.
Floor 2 Posted 2004-01-10 00:00 ·  中国 上海 宝山区 电信
初级用户
Credits 114
Posts 3
Joined 2004-01-07 00:00
22-year member
UID 15099
Gender Male
Status Offline
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.
Floor 3 Posted 2004-01-10 00:00 ·  中国 辽宁 沈阳 联通
初级用户
★★
Credits 672
Posts 216
Joined 2003-06-12 00:00
23-year member
UID 4976
Gender Female
Status Offline
It can be solved by checking whether the optical drive is usable. Just use a little program like ready.
我是女孩,我怕谁?
Forum Jump: