Board logo

标题: [求助]如何制作这样带菜单的IMG? [打印本页]

作者: singer2008    时间: 2005-5-31 19:04     标题: [求助]如何制作这样带菜单的IMG?

启动IMG之后显示选择菜单,选择某一项可以执行光盘上的程序,而不是IMG里面的,IMG只是作为一个启动盘。怎么制作?
比如选择GHOST,就可以执行光盘下某目录下的GHOST.EXE
选择PQMAGIC,就执行光盘下某目录下的PQMAGIC.EXE
还有,运行GHOST,PQMAGIC,DM等等都需要加载哪些文件?
CONFIG.SYS中怎样设置?
作者: xzf    时间: 2005-5-31 19:53     标题: [求助]如何制作这样带菜单的IMG?

[这个贴子最后由xzf在 2005/05/31 11:56am 第 1 次编辑]

config.sys下
[menu]
menuitem=CDROM, From DISK up run DOS union hang CD-ROM
menuitem=NOPQ8, From CDROM up run Partition Magic 8.0 English
menuitem=NODM1, From DISK up run DM956 Chinese & English
menudefault=CD,20
menucolor=7,1
[CDROM]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:mscd001
devicehigh=ramdrive.sys /E 8192
[NOPQ8]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:mscd001
devicehigh=ramdrive.sys /E 8192
[NODM1]
rem lastdrive=g
device=himem.sys
rem device=interlnk.exe /auto /drives=5
device=vide-111.sys /d:mscd000
files=30
autoexec.bat下
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
if %config% == CDROM goto CDROM1
if %config% == NOPQ8 goto CDROM2
if %config% == NODM1 goto CDROM3
goto FAILED
:CDROM1
LH \MSCDEX.EXE /D:mscd001 /L:%CDROM%
SMARTDRV.EXE
goto exit
:CDROM2
LH \MSCDEX.EXE /D:mscd001 /L:%CDROM%
IF NOT EXIST %CDROM%:\PQ8\PQMAGIC.EXE
SMARTDRV.EXE
%CDROM%:
CD \PQ8
PQMAGIC
goto exit
:CDROM3
rem mscdex /d:mscd000 /l:G
mscdex /d:mscd000 /l:x
ver
tw /np > nul
dm.bat






欢迎光临 EZB 论坛 (http://ultraiso.net/ezbbbs/) Powered by Discuz! 6.1.0