debug off
## 判断是否为UD启动,如果不是则设置bootdv为初始启动驱动器 %?_BOOT%
root (ud) && call set bootdv=(ud) ! call set bootdv=%?_BOOT%
## 如果UD被识别为zip,调用WCRUN .hd2hd将fd0转换为hd0
if "%?_BOOT:~1,1%"=="f" && find --set-root --devices=f /WC2008/WCRUN && command /WC2008/WCRUN .hd2hd && call set bootdv=(hd0) && root (hd0)
## 再次确认bootdv变量
if exist %bootdv%/WC2008/WCRUN || find --set-root /WC2008/WCRUN && call set bootdv=%@root^%
## 加载WCRUN模块到内存
delmod -l WCRUN || insmod /WC2008/WCRUN
## 判断PE版本,动态生成主菜单并写入内存
WCRUN .bt && WCRUN .rlst
## 进入PE主菜单 lstmenu=(md)0x3000+0x10
configfile %lstmenu%
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) | Powered by Discuz! X3.3 |