|
[这个贴子最后由QQ5155099在 2006/03/24 08:14pm 第 2 次编辑]
一直很爱把这么简单的dos启动软盘当成启动光盘的启动文件。
就是存在于easyboot里的那个Setup98.img软盘镜像,
可以在进入Dos菜单前选择进入Dos或者直接进入硬盘。
可要是我把它做成启动光盘,并且在菜单上设置我自己常用的Dos软件,该如何去修改这个AUTOEXEC文件呢?
@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 /L:D
echo.
IF "%config%"=="SETUP_CD" goto AUTOSETUP
GOTO QUIT
:AUTOSETUP
set CDROM=FOO23
FINDCD.EXE
if "%CDROM%"=="FOO23" goto NOCDROM
path=a:\;%CDROM%\
%CDROM%
cd \WIN98
echo.
OEMSETUP.EXE /K "/IE /NF"
goto QUIT
:NOCDROM
echo.
echo The Windows 98 Setup files were not found.
echo.
:QUIT
我试过这样改:
@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 /L:[color=#DC143C]Z
echo.
IF "%config%"=="SETUP_CD" goto AUTOSETUP
[color=#DC143C]goto %config%
GOTO QUIT
:AUTOSETUP
set CDROM=FOO23
FINDCD.EXE
if "%CDROM%"=="FOO23" goto NOCDROM
path=a:\;%CDROM%\
%CDROM%
cd \WIN98
echo.
OEMSETUP.EXE /K "/IE /NF"
goto QUIT
:NOCDROM
echo.
echo The Windows 98 Setup files were not found.
echo.
[color=#DC143C]goto %config%
:DM
Z:
cd DM
d.bat
goto QUIT
:GHOST
Z:
mouse.com
ghost.exe
goto QUIT
:SPFDISK
Z:
cd dm
SPFDISK.EXE
goto Quit
本来以为已改成功了~`
可当机子中存在两个光驱时,菜单就失效了…
[color=#DC143C]请大家帮帮忙……
补充:以下是我修改过的Config文件
[menu]
menuitem=DM
menuitem=Ghost
menuitem=SPFDISK
menuitem=CD, Start computer with CD-ROM support.
menuitem=NOCD, Start computer without CD-ROM support.
menudefault=DM,10
menucolor=7,0
[CD]
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
[NOCD]
device=himem.sys /testmem:off
[COMMON]
files=60
buffers=20
dos=high,umb
stacks=9,256
lastdrive=z
[DM]
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
[Ghost]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:oemcd001
[SPFDISK]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:oemcd001 |
|