|  | 
| 本帖最后由 liuzhaoyzz 于 2023-6-18 13:17 编辑 
 2023-06-18日的run模块,还是有点问题。
 
 graphicsmode -1 800
 #foreground FFFFFF
 #background 0000AD
 find --ignore-floppies --set-root /boot/grub/FONT_CN6500.GZ
 font /boot/grub/FONT_CN6500.GZ
 #splashimage /boot/grub/xxx.bmp
 #color white/blue blue/yellow light-red/blue 10
 #color normal=0x07 highlight=0xF1 helptext=0x07 heading=0x02 standard=0x07 border=0x09
 color normal=0x07 highlight=0xE1 helptext=0x07 heading=0x02
 timeout 3
 default 0
 
 title run-2011yaya2007777
 find /EFI/grub/RUN | set bd= ;; echo bd=%bd%
 find --set-root ls /boot/imgs/
 command %bd%/EFI/grub/RUN --automenu /boot/imgs/ hires=1
 1、用上面的的写法,启动pe.wim,进入后分辨率仍然是800*600,仿佛hires=1没有起作用。
 2、建议run的参数用“--”作为先导符,这很重要,因为run有很多参数,还有目录或者文件。--hires=1这样子不好吗?这样子的话,无论有多少参数,顺序可以随意调整。“--”作为先导符更加符合g4e/g4e的语法体系啊,run的语法一直都是用“--”作为先导符的。用空格作为先导符,run怎么确定是个参数,而不是个文件名?
 find /boot/imgs/WEPE64.WIM | set bd= ;; echo bd=%bd%
 find /EFI/grub/ext/run
 /EFI/grub/ext/run %bd%/boot/imgs/WEPE64.WIM hires=1
 这个菜单进入之后PE.WIM是最大分辨率了。
 
   建议改为:/EFI/grub/ext/run %bd%/boot/imgs/WEPE64.WIM --hires=1
 
 3、command %bd%/EFI/grub/RUN --automenu  hires=1 /boot/imgs/直接出错,原因见第2条。用空格作为先导符,run怎么确定是个参数,而不是个文件名?
 截图如下。
 
   run的语法体系,看前面一个截图的run --help显示的帮助,一般地最后一个参数应该是文件夹或者文件名字比如pe.wim,hires=1作为一个参数放在最后面,语法上就有点乱。
 
 你的ntboot_UEFI代码里面应该已经有hires=0/1的处理了吧,run的脚本里面,run的代码里面加几个%~1,%~2,%~3啥的应该就可以了吧,多加几个,应该就可以了吧。
 
 
 
 
 | 
 |