大哥,大姐快帮帮小弟!!!
[这个贴子最后由任我行在 2003/08/18 02:27am 第 1 次编辑]
修改如下:
config.sys:
[menu]
menuitem=SETUP_CD, RUN GHOST FROM CD-ROM.
menuitem=NOCD, Start computer without CD-ROM support.
menudefault=SETUP_CD,30
menucolor=7,0
[SETUP_CD]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:mscd001
[NOCD]
device=himem.sys /testmem:off
[COMMON]
files=60
buffers=10
dos=high,umb
stacks=9,256
lastdrive=z
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:mscd001 ←────注意這裡要和config.sys中設置對應
IF "%config%"=="SETUP_CD" goto AUTOSETUP
GOTO QUIT
:AUTOSETUP
FINDCD.EXE
if errorlevel=255 goto NOCDROM
if errorlevel=1 set cdrom=a
if errorlevel=2 set cdrom=b
if errorlevel=3 set cdrom=c
if errorlevel=4 set cdrom=d
if errorlevel=5 set cdrom=e
if errorlevel=6 set cdrom=f
if errorlevel=7 set cdrom=g
if errorlevel=8 set cdrom=h
if errorlevel=9 set cdrom=i
if errorlevel=10 set cdrom=j
if errorlevel=11 set cdrom=k
if errorlevel=12 set cdrom=l
if errorlevel=13 set cdrom=m
if errorlevel=14 set cdrom=n
if errorlevel=15 set cdrom=o
if errorlevel=16 set cdrom=p
if errorlevel=17 set cdrom=q
if errorlevel=18 set cdrom=r
if errorlevel=19 set cdrom=s
if errorlevel=20 set cdrom=t
if errorlevel=21 set cdrom=u
if errorlevel=22 set cdrom=v
if errorlevel=23 set cdrom=w
if errorlevel=24 set cdrom=x
if errorlevel=25 set cdrom=y
if errorlevel=26 set cdrom=z
path=a:\;%CDROM%:\
%CDROM%:
cd \ezboot
ghost.exe -rb -sure -clone,mode=pload,src=system.gho:1,dst=1:1
echo.
goto QUIT
:NOCDROM
echo.
echo The Windows 98 Setup files were not found.
echo.
:QUIT