以下是引用shadowman在2003-7-10 0:57:05的发言:
又要麻烦各位了,先谢谢了!!
我的本意是想通过autoexec.bat和config.sys自动进入光盘里的win98se目录(就在光盘的根目录下),执行setup.exe,来安装windows98的,但不知错在呢,就是进不了光驱!!
我的autoexec.bat的内容是:
@ECHOOFF
setEXPAND=YES
SETDIRCMD=/O:N
cls
settemp=c:\
settmp=c:\
path=a:\
IF"%config%"=="NOCD"GOTOQUIT
LHMSCDEX.EXE/D<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">emcd001/L<img src="images/smilies/face-smile-big.png" align="absmiddle" border="0">
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
我的config.sys的内容是:
menuitem=SETUP_CD,StartWindows98SetupfromCD-ROM.
menuitem=CD,StartcomputerwithCD-ROMsupport.
menuitem=NOCD,StartcomputerwithoutCD-ROMsupport.
menudefault=SETUP_CD,30
menucolor=7,0
device=himem.sys/testmem<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">ff
device=oakcdrom.sys/D<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">emcd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys/D<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">emcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys/D<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">emcd001
device=himem.sys/testmem<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">ff
device=oakcdrom.sys/D<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">emcd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys/D<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">emcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys/D<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">emcd001
device=himem.sys/testmem<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">ff
files=60
buffers=20
dos=high,umb
stacks=9,256
lastdrive=z
也许这对你来是很简单的事,但你能帮我我真的很谢谢你!!
你是在原win98的启动盘上进行修改的,而win98的启动盘中的findcd是必需在加载其虚拟盘及调用findramd后才能检测光驱盘符的,如果你要正常使用,建议使用Wengier编写的findcd.exe(在其启动盘里面有);同时将autoexec.bat修改为:
autoexec.bat的内容是:
@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 /D<img src="images/smilies/face-surprise.png" align="absmiddle" border="0">emcd001
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
其中在rem的地方最好加入cda用于检测光驱中是否有光盘,若有则继续,否则提示没有光盘。
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/D:oemcd001/L:D
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/testmem:off
device=oakcdrom.sys/D:oemcd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys/D:oemcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys/D:oemcd001
device=himem.sys/testmem:off
device=oakcdrom.sys/D:oemcd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys/D:oemcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys/D:oemcd001
device=himem.sys/testmem:off
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 /D:oemcd001
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.