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.
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.


