Expert Wengier, my computer has three CD-ROM drives (one burner and two old CD-ROM drives). I want to make a bootable CD that automatically installs Win98. Right now I need the CD, after booting, to automatically find from among the three CD-ROM drives which drive letter this disc is in, so that it can operate on the CD. So I used your findcd.exe file, and added the following lines to autoexec.bat:
CTLOAD oakcdrom.sys /d:mscd001
MSCDEX.EXE /d:mscd001
Findcd/s
if %CDROM%#==5# goto 5CD
if %CDROM%#==4# goto 4CD
if %CDROM%#==3# goto 3CD
if %CDROM%#==2# goto 2CD
if %CDROM%#==0# goto err
:1CD
set Win98CD=%CDROM1%
goto 98UP
:2CD
if not exist %CDROM2%\win98\setup.exe goto 1cd
set Win98CD=%CDROM2%
goto 98UP
:3CD
if not exist %CDROM3%\win98\setup.exe goto 2cd
set Win98CD=%CDROM3%
goto 98UP
:4CD
if not exist %CDROM4%\win98\setup.exe goto 3cd
set Win98CD=%CDROM4%
goto 98UP
In theory the above commands are still fairly correct, but when I boot from this CD I get the following prompt:
C:\>MSCDEX.EXE /d:mscd001
MSCDEX Version 2.95 already started
C:\>Findcd/s
CDROM=3
CDROM1=I:
CDROM2=J:
CDROM3=K:
C:\>if 3#==5# goto 5CD
C:\>if 3#==4# goto 4CD
C:\>if 3#==3# goto 3CD
C:\>if not exist K:\win98\setup.exe goto 2cd
Not ready reading drive K
Abort, Retry, Fail?
I analyzed the reason a bit, and found that when autoexec.bat runs, the program first starts checking for the CD from the drive letter of the last CD-ROM drive. If the specified file is on the disc, then that disc is determined to be the one with the drive letter we want. But when the disc is not in that drive, the above error prompt appears. How should this problem be solved? Also, is there any simpler, better, and more accurate way to let the program automatically find which drive letter among several CD-ROM drives contains the current disc? Please advise me,
many thanks!
CTLOAD oakcdrom.sys /d:mscd001
MSCDEX.EXE /d:mscd001
Findcd/s
if %CDROM%#==5# goto 5CD
if %CDROM%#==4# goto 4CD
if %CDROM%#==3# goto 3CD
if %CDROM%#==2# goto 2CD
if %CDROM%#==0# goto err
:1CD
set Win98CD=%CDROM1%
goto 98UP
:2CD
if not exist %CDROM2%\win98\setup.exe goto 1cd
set Win98CD=%CDROM2%
goto 98UP
:3CD
if not exist %CDROM3%\win98\setup.exe goto 2cd
set Win98CD=%CDROM3%
goto 98UP
:4CD
if not exist %CDROM4%\win98\setup.exe goto 3cd
set Win98CD=%CDROM4%
goto 98UP
In theory the above commands are still fairly correct, but when I boot from this CD I get the following prompt:
C:\>MSCDEX.EXE /d:mscd001
MSCDEX Version 2.95 already started
C:\>Findcd/s
CDROM=3
CDROM1=I:
CDROM2=J:
CDROM3=K:
C:\>if 3#==5# goto 5CD
C:\>if 3#==4# goto 4CD
C:\>if 3#==3# goto 3CD
C:\>if not exist K:\win98\setup.exe goto 2cd
Not ready reading drive K
Abort, Retry, Fail?
I analyzed the reason a bit, and found that when autoexec.bat runs, the program first starts checking for the CD from the drive letter of the last CD-ROM drive. If the specified file is on the disc, then that disc is determined to be the one with the drive letter we want. But when the disc is not in that drive, the above error prompt appears. How should this problem be solved? Also, is there any simpler, better, and more accurate way to let the program automatically find which drive letter among several CD-ROM drives contains the current disc? Please advise me,
many thanks!


