grub4dos-0.4.6a\sample\menu.lst:
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
# # It must be UTF-8 encoding for multi-lingual support. Font lines can be
# appended to the file. The font lines should be in the unifont.hex format.
color blue/green yellow/red white/magenta white/magenta
timeout 30
## menu border color
color border=0xEEFFEE
## set vbe mode
graphicsmode -1 640:800 480:600 24:32 || graphicsmode -1 -1 -1 24:32
## loading splashimage
splashimage /boot/grub/splashimage.xpm || splashimage /boot/grub/splashimage.bmp
calc *0x8272&0xff > nul ;; set arch=%@retval%
if "%arch%"=="64" set IA=x64 ! set IA=ia32 && set arch=PE
以上第二句还不行必须加一个这样的
if "%arch%"=="64" && set IA=x64 ! set IA=ia32 && set arch=PE
如果后面没有这样可以成立:
if "%arch%"=="64" set IA=x64
只要后面有其他语句则 &&不能省
if "%arch%"=="64" && set IA=x64 ! set IA=ia32
这样写就不对:
if "%arch%"=="64" set IA=x64 ! set IA=ia32