中国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-09-30 07:31
47,813 topics / 349,918 posts / today 0 new / 48,278 members
DOS学习入门 & 精彩文章 (教学室) » Help! Can't automatically enter the CD drive...
Printable Version  2,750 / 18
Floor16 shadowman Posted 2003-07-10 00:00
初级用户 Posts 26 Credits 218
The following is a quote from Dianjieruqinvading on 2003-7-10 3:22:30:
Take a look at mine....Open the attachment


What is it? Why can't I download it!!!
Floor17 电吉入侵 Posted 2003-07-10 00:00
初级用户 Posts 377 Credits 1,480
It can be downloaded here.....
Automatically installed IMG ah
Floor18 pfox Posted 2003-07-10 00:00
银牌会员 Posts 446 Credits 1,451
The following is the statement from shadowman on 2003-7-10 0:57:05:
I need to trouble you all again, thank you first!!
My original intention was to automatically enter the win98se directory in the CD (right in the root directory of the CD) through autoexec.bat and config.sys, execute setup.exe, to install Windows 98, but I don't know where the mistake is, that is, I can't enter the CD drive!!
The content of my autoexec.bat is:
@ECHOOFF
setEXPAND=YES
SETDIRCMD=/O:N
cls
settemp=c:\
settmp=c:\
path=a:\
IF"%config%"=="NOCD"GOTOQUIT
LHMSCDEX.EXE/Demcd001/L

echo.
IF"%config%"=="SETUP_CD"gotoAUTOSETUP
GOTOQUIT

:AUTOSETUP
setCDROM=FOO23
FINDCD.EXE
if"%CDROM%"=="FOO23"gotoNOCDROM
path=a:\;%CDROM%\
%CDROM%
cd\WIN98
echo.
OEMSETUP.EXE/K"/IE/NF"
gotoQUIT

:NOCDROM
echo.
echoTheWindows98Setupfileswerenotfound.
echo.

:QUIT

The content of my config.sys is:

menuitem=SETUP_CD,StartWindows98SetupfromCD-ROM.
menuitem=CD,StartcomputerwithCD-ROMsupport.
menuitem=NOCD,StartcomputerwithoutCD-ROMsupport.
menudefault=SETUP_CD,30
menucolor=7,0


device=himem.sys/testmemff
device=oakcdrom.sys/Demcd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys/Demcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys/Demcd001


device=himem.sys/testmemff
device=oakcdrom.sys/Demcd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys/Demcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys/Demcd001


device=himem.sys/testmemff


files=60
buffers=20
dos=high,umb
stacks=9,256
lastdrive=z

Maybe this is very simple for you, but I really thank you if you can help me!!




You are modifying on the original win98 boot disk, and findcd in the win98 boot disk is necessary to detect the CD drive letter after loading its virtual disk and calling findramd. If you want to use it normally, it is recommended to use the findcd.exe written by Wengier (it is in its boot disk); at the same time, modify autoexec.bat to:

The content of autoexec.bat is:
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
cls
set temp=c:\
set tmp=c:\
path=a:\
IF "%config%"=="NOCD" GOTO QUIT
LH MSCDEX.EXE /Demcd001

echo.
IF "%config%"=="SETUP_CD" goto AUTOSETUP
GOTO QUIT

:AUTOSETUP
FINDCD.EXE /S
if "%CDROM1%"=="" goto NOCDROM
path=a:\;%CDROM1%
rem cda %cdrom1%
rem goto quit
%CDROM1%
cd \WIN98
echo.
OEMSETUP.EXE /K "/IE /NF"
goto QUIT

:NOCDROM
echo.
echo The Windows 98 Setup files were not found.
echo.

:QUIT

Among them, the cda should be added in the rem place to detect whether there is a disc in the CD drive, and if there is, continue, otherwise prompt that there is no disc.


Floor19 shadowman Posted 2003-07-10 00:00
初级用户 Posts 26 Credits 218
Thanks, Brother Zi Hu. The problem is solved as you said!!!
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023