|  | 
7#
 
 
 楼主|
发表于 2021-7-1 23:08:43
|
只看该作者 
| 对M1.lst文件菜单2进行修改,BCD文件路径也进行变更,但是系统启动时还是认的EFI\BCD文件,因此修改不成功,请问一下大家需修改那里呀,谢谢! 
 title   [2] Windows 7/8 PE                   Windows 7/8 PE\n   Chainload /WinPE/BOOTMGR
 set wboot=
 if exist (bd)/0PE/3rdParty/wimboot set wboot=(bd) || if exist %?_BOOT%/0PE/3rdParty/wimboot set wboot=%?_BOOT% || if exist (0xff)/0PE/3rdParty/wimboot set wboot=(0xff) || if exist (hd0,0)/0PE/3rdParty/wimboot set wboot=(hd0,0) || if exist (hd0,1)/0PE/3rdParty/wimboot set wboot=(hd0,1)
 if not exist wboot && if exist eb map --status=17 &&  if exist (fd17)/0PE/3rdParty/wimboot set wboot=(fd17)
 if not exist wboot if exist (fd0,0)/0PE/3rdParty/wimboot set wboot=(fd0,0)
 if not exist wboot if exist (fd0,1)/0PE/3rdParty/wimboot set wboot=(fd0,1)
 if not exist wboot && pause --wait=2 Warnning: No /0PE/3rdParty/wimboot. || commandline
 set pe78=
 if exist (bd)/WinPE/BOOTMGR set pe78=(bd) || if exist %?_BOOT%/WinPE/BOOTMGR set pe78=%?_BOOT% || if exist (0xff)/WinPE/BOOTMGR set pe78=(0xff) || if exist (hd0,0)/WinPE/BOOTMGR set pe78=(hd0,0) || if exist (hd0,1)/WinPE/BOOTMGR set pe78=(hd0,1)
 if not exist pe78 echo Finding /WinPE/BOOTMGR...
 if not exist pe78 && if exist eb map --status=17 &&  if exist (fd17)/WinPE/BOOTMGR set pe78=(fd17)
 if not exist pe78 if exist (fd0,0)/WinPE/BOOTMGR set pe78=(fd0,0)
 if not exist pe78 if exist (fd0,1)/WinPE/BOOTMGR set pe78=(fd0,1)
 if not exist pe78 find --set-root --ignore-floppies --ignore-cd /WinPE/BOOTMGR &; set pe78=%@root%
 if not exist pe78 find --set-root /WinPE/BOOTMGR &; set pe78=%@root%
 if not exist pe78 clear && echo 此功能需要BOOTMGR在指定目录。 && root (bd) || echo
 if not exist pe78 && pause 回车转RUN模块... || commandline
 if not exist pe78 goto 7
 rootnoverify %pe78%
 if exist wboot echo Wimbooting %pe78%/WinPE/Win7PE.wim... && kernel %wboot%/0PE/3rdParty/wimboot index=1 && initrd @bcd=/WinPE/bcd @boot.sdi=/WinPE/boot.sdi @bootmgr=/WinPE/bootmgr @boot.wim=/WinPE/Win7PE.wim && boot ! echo -n
 echo Loading Windows 7/8/10 PE in %pe78%...
 rootnoverify %pe78%
 if "%@root%"=="(fd17)" set pe78=(fd17)
 if "%pe78:~1,1%"=="f" || if "%pe78:~1,1%"=="u" || echo -n ! (hd-1,0)/bin/pe10 %pe78% || echo -n
 map (hd-1) (hd-1)
 map --rehook
 chainloader /WinPE/BOOTMGR && boot
 pause Something is wrong with your 10PE/8PE/7PE. && reboot
 
 
   
 
   
 
 | 
 |