|
原帖由 717758565 于 2011-1-7 15:56 发表
tubazi兄能把你的menu的代码发上来吗谢谢
这是两位RUN作者菜单的结合。
#声明外部命令位置
command --set-path=(bd)/BOOT/GRUB/
#将外部命令WENV加载进内存
insmod (bd)/BOOT/GRUB/WENV
UNIFONT (bd)/BOOT/GRUB/U16HEI
foreground ffffff
background 1030C0
title [01] 启动GHOST
RUN /BOOT/IMGS/XGHOST.IMG
boot
title [02] 启动PE
RUN /WXPE/SETUPLDR.BIN
boot
title [03] dos时代菜鸟工具箱
RUN /BOOT/IMGS/DTS.IMA
boot
title [04] dos时代菜鸟工具箱里的DiskGenius
#仅限dts.ima 117版,166版请自行修改write --offset=317为write --offset=419
RUN /BOOT/IMGS/DTS.IMA 1c
boot
title [05] DiskGenius
RUN /BOOT/IMGS/DG.IMG
boot
title [06] ADDS分区
RUN /BOOT/IMGS/ADDS.IMG
boot
title [07] ISO安装XP/03
#两次启动所用菜单相同 第一次需按I启动ISO 第二次需按回车键从硬盘启动继续安装
RUN firadisk /WIN$.ISO
boot
title [08] 手动输入文件路径(支持FIRADISK参数)
#即输入 FIRADISK /isofile 会加载firadisk驱动 输入 /isofile 不会加载firadisk驱动
RUN
boot
title [09] 手动输入文件路径(仅ISO,默认加载FIRADISK驱动)
#只能执行ISO文件,不能执行IMG等文件,默认加载FIRADISK
RUN FIRADISK
boot
#自动根据/BOOT/IMGS/目录下的文件生成菜单.(固定用法) (chenall的创新)
#由sratlf修改为根据任意目录下的文件生成菜单.
#仍以/BOOT/IMGS/目录为例,注意目录最后需以/结尾,否则会出错
title [10] auto make menu for /BOOT/IMGS/
RUN automenu /BOOT/IMGS/
configfile (md)0x3000+0x10
title [11] 生成IMG目录文件列表
#find --set-root (bd)/BOOT/IMGS
RUN (bd)/boot/imgs/.input
configfile (md)0x3000+0x10
title [12] 转入命令行模式
commandline
title [13] 重启计算机
reboot
title [14] 关闭计算机
halt |
|