| 
 | 
 
debug off 
timeout 1 
default 1 
set pecd=asipirin.iso  
set bd=hd 
if not %?_BOOT%==(cd) find --devices=u set ?_BOOT=ud 
#checkrange 0x0 read 0x8280 && set bd=fd 
#checkrange 0x21 read 0x8280 && set bd=pd 
#checkrange 0x9f:0xff read 0x8280 && set ?_BOOT=cd 
#checkrange 0x23 read 0x8280 && set bd=ud 
#if [email=%@root%==(cd]%@root%==(cd[/email]) set bd=cd 
#UD启动如可见区识别为fd0,0则映射为hd0 
if %?_BOOT%==(ud) checkrange 0 read 0x82a0 && map (fd0) (hd0) && map (hd0) (hd) && map --hook && rootnoverify (hd0,0) 
#if "[email=%@root%]%@root%"=="(fd0,0[/email])" map (fd0) (hd0) && map (hd0) (hd) && map --hook && rootnoverify (hd0,0) 
#默认启动菜单 
set grmenu=asipirin.lst 
#ISO整体启动菜单 
if %?_BOOT%==(ud) if exist (ud)/%pecd% root (ud) 
if exist /%pecd% timeout 15 || configfile /BOOT/%grmenu% 
color white/blue white/red yellow/blue white/magenta 
title              __________Load %pecd% _________ 
clear 
title [1]--"map --mem /%pecd%" at first\nNeed large memory and spend more time to load iso to memory,but support all function besides win7pe,don't use on usb1.x. 
set ldiso=NO 
pause --wait=0 Tring to load ISO to mem... 
map --mem /BOOT/IMGS/FIRADISK.IMA (fd0) || map --mem /FIRADISK.IMA (fd0)  
map --mem /%pecd% (0xff) && set ldiso=YES 
if %ldiso%==NO pause --wait=0 Tring to direct map link to ISO... && map /%pecd% (0xff) && set ldiso=YES 
if %ldiso%==YES map --hook && rootnoverify (0xff) && chainloader (0xff) 
boot 
title [2]--"map /%pecd%" at first\nNeedn't more memory and very fast,but the iso must be contig and can't support all function. 
set ldiso=NO 
pause --wait=0 Tring to direct map link to ISO... 
map /%pecd% (0xff) && set ldiso=YES 
if %ldiso%==NO pause --wait=0  Tring to load ISO to mem... && map --mem /BOOT/IMGS/FIRADISK.IMA (fd0) || map --mem /FIRADISK.IMA (fd0) 
if %ldiso%==NO map --mem /%pecd% (0xff) && set ldiso=YES 
if %ldiso%==YES map --hook && rootnoverify (0xff) && chainloader (0xff) 
boot 
#================================ 
这样子可以整齐启动iso并且进pe后外置程序不丢失!我搞不懂... 
搞懂了,他的工具是内置的.... 
 
[ 本帖最后由 qczstart 于 2012-12-13 12:01 编辑 ] |   
 
 
 
 |