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-06-20 19:00
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Help! Can't automatically enter the CD drive... View 2,377 Replies 18
Floor 16 Posted 2003-07-10 00:00 ·  中国 北京 北京神州长城通信技术发展中心中国长城互联网
初级用户
Credits 218
Posts 26
Joined 2003-05-30 00:00
23-year member
UID 2628
Gender Male
Status Offline
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!!!
Floor 17 Posted 2003-07-10 00:00 ·  中国 广东 广州 荔湾区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
It can be downloaded here.....
Automatically installed IMG ah
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 18 Posted 2003-07-10 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
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.


Floor 19 Posted 2003-07-10 00:00 ·  中国 北京 北京神州长城通信技术发展中心中国长城互联网
初级用户
Credits 218
Posts 26
Joined 2003-05-30 00:00
23-year member
UID 2628
Gender Male
Status Offline
Thanks, Brother Zi Hu. The problem is solved as you said!!!
Forum Jump: