|  | 
| 强人啊, 写得不错, 收了 关于PE2 的多重启动, 其实可以修改BCD, 做一个多选菜单, 缺点是加上PXELINUX的菜单变成两重菜单,
 但胜在修改方便, 只要把PE2的WIM文件加入到\BOOT\, 然后在BCD中加多一个启动项就行了
 我的BCD批处理文件如下:
 Rem Creates BCD (boot configuration data) for three Windows PE 2.0 images
 set BCD-File=X:\temp\BCD
 del %BCD-File%
 Bcdedit /createstore %BCD-File%
 Bcdedit /store %BCD-File% /create {ramdiskoptions} /d "Ramdisk options"
 Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdidevice  boot
 Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdipath  \boot\boot.sdi
 
 for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "VistaPE X86 Origin" /application osloader') do set guid1=%%c
 Bcdedit /store %BCD-File% /set %guid1% systemroot \Windows
 Bcdedit /store %BCD-File% /set %guid1% detecthal Yes
 Bcdedit /store %BCD-File% /set %guid1% winpe Yes
 Bcdedit /store %BCD-File% /set %guid1% osdevice ramdisk=[boot]\Boot\winpe_x86.wim,{ramdiskoptions}
 Bcdedit /store %BCD-File% /set %guid1% device ramdisk=[boot]\Boot\winpe_x86.wim,{ramdiskoptions}
 
 for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "VistaPE for Test" /application osloader') do set guid2=%%c
 Bcdedit /store %BCD-File% /set %guid2% systemroot \Windows
 Bcdedit /store %BCD-File% /set %guid2% detecthal Yes
 Bcdedit /store %BCD-File% /set %guid2% winpe Yes
 Bcdedit /store %BCD-File% /set %guid2% osdevice ramdisk=[boot]\Boot\winpe_2nd.wim,{ramdiskoptions}
 Bcdedit /store %BCD-File% /set %guid2% device ramdisk=[boot]\Boot\winpe_2nd.wim,{ramdiskoptions}
 
 Bcdedit /store %BCD-File% /create {bootmgr} /d "Windows VISTA BootManager"
 Bcdedit /store %BCD-File% /set {bootmgr} timeout 30
 Bcdedit /store %BCD-File% /set {bootmgr} displayorder %guid2% %guid1%
 Bcdedit /store %BCD-File% /enum all
 
 [ 本帖最后由 tintinbt 于 2008-4-13 12:27 AM 编辑 ]
 | 
 |