Sample_MyE2B.cfg

Check the \_ISO folder for the latest version of this file as it may be updated in later versions of E2B.
Note: Line numbers have been added for reference purposes, they are not present in the file itself.
 
E2B v1.B0 - Sample_MyE2B.cfg
 
!BAT
# IMPORTANT: This file MUST begin with !BAT
 
# Go to easy2boot.com for full details.
#
#   This file can be copied to \_ISO\MyE2B.cfg
#   Edit it to change the language, Main heading, Footer, startup behaviour, etc.
#   You can use E2B_Editor.exe to load this file and configure your own settings.
#
# HELP USING THIS .CFG FILE
#   #    a single hash symbol comments out a line - these lines contain help or information - the # symbol should not be removed
#   ###  three hash symbols means you can uncomment and use these lines - they contain example grub4dos commands which can be used to change the E2B settings
#
#   e.g.
#       #  Auto menu      - this line should not be changed - do not delete the # symbol
#       ###set DEFM_MNU=0 - this line can be uncommented by deleting the ### symbols and then changed by the user if required
 
# If you wish, you can delete any whole line beginning with # or ### to make the file smaller and more legible
 
#       SUB-MENU HEADINGS are in the STRINGS.TXT language files (for different languages)
#       Menu entries and E2B phrases are also in each STRINGS.TXT file
#       DO NOT EDIT THE \_ISO\e2b\grub\ENG\STRINGS.TXT file - copy it to \_ISO\e2b\grub\FRED\STRINGS.TXT and use 'set LANG=FRED' in this file to use it
#       WARNING: If you have a \_ISO\STRINGS.txt file (for testing only), it will over-ride any language setting
 
#  ------ USE ALTERNATE CFG FILE FOR 800x600 ----
# if you use 1024x768 (GMODE=1024), you can use the two lines below to use an alternate 800x600 MyE2B800.cfg config file if 1024x768 is not supported by the computer
###debug 1 ;; vbeprobe > (md)0x220+5 ;; debug 0
###cat --locate=1024x768x24 (md)0x220+5 > nul || /_ISO/MyE2B800.cfg && goto :EOF
 
#  ----- GRAPHICS MODE AND WALLPAPER -----
# set graphics mode - use 640 or 800 (recommended) or 1024 - or specify full mode - e.g. 800 600 24
# 800x600x24 is required for the default E2B background bitmap  - you can define exact size - e.g. GMODE=800 600  or  GMODE=800 -1 24:32 (800 by *anything* with 24 or 32-bit colour)
set GMODE=800
 
# set the WALLPAPER BACKGROUND
# The size of your background bmp must match the GMODE setting (e.g. use 1024x768 bitmap and set GMODE=1024)
# Change the path and filename below if you wish - .bmp and .bmp.gz supported (.bmp can be compressed using LZMA_Encode). grub4dos 0.4.6a also supports .jpg files.
set MYWBMP=/_ISO/mybackground.bmp
 
# If GMODE is set to a number (e.g. 800 or 1024 for graphics mode), then we can fill the screen with a single colour instead of using a bitmap
# This is quicker than loading a bitmap file - the colour value must begin with 0x (zero x) and must be in RGB format 0xrrggbb
###set MYWBMP=0xff0033
 
#    --------- MAIN MENU HEADING -----
# start the heading with \x20 if you need leading spaces.
# special variables can be used. %B64% is CPU type + Memory size - e.g. [486MB 64-bit];  %VER% is E2B version - e.g. 1.65. Use %@date% or %day%-%month%-%year% for date
 
set HEADING=\x20 EASY2BOOT - MAIN MENU  (%VER%) %B64%
 
# Heading position is set by HEADPOS + HPAD - all menu headings are affected (must be 4 decimal numbers)
# set start position of HEADING using HEADPOS=YYXX  - default position = HEADPOS=0000 = top-left, 0200 = 3rd line down - should always end in 00 if you use CENTREHD=1
set HEADPOS=0000
# HPAD sets space padding (alignment) before all menu headings - NORMALLY, NO NEED TO CHANGE THIS!
# this is usually automatically calculated by E2B from the rstart value (\x20 is same as one space character)
###set HPAD=\x20              \x20
 
# ----- CENTRE ALL MENU HEADINGS -----
# CENTREHD=xx causes the menu headings to be centred inside xx characters - e.g. if CENTREHD=60 then middle will be at (HPAD)+30
# If CENTREHD=1 then the menuw value (see below) is used to calculate the centre position - Use CENTREHD=1 for normal auto-centred headings
# To centre all headings across an 800 pixel display (i.e. not centred on menu width) use  CENTREHD=98, HEADPOS=0000, HPAD=\x20
### set CENTREHD=1
 
# ----- HEADING COLOUR -------
# HCOLOUR sets the colour of the HEADING text 
# HCOLOUR=ABCD specifies the text colour  [BLINK|BRIGHT_F|BACKGROUND|FOREGROUND]
# A=0-1  1=BLINK text (does not work under VM or in graphics mode) - i.e. only works if GFX=none is used.
# B=0-1  1=BRIGHT_F sets bright value for foreground text
# C=0-7   =BACKGROUND colour - transparent if graphics mode so has no effect!
# D=0-7   =FOREGROUND menu text colour
# Colours parameters are: 0=black/grey 1=blue, 2=green, 3=cyan, 4=red, 5=pink, 6=yellow/brown, 7=grey/white.
# You can instead specify a hex RRGGBB colour for FCOLOUR and HCOLOUR - e.g. set HCOLOUR=0x00FFFF (does not work if in text mode GFX=none)
# e.g. 0133 is non-blinking bright cyan text (on a dark cyan background if not in graphics mode) - if a wallpaper is used (graphics mode) it becomes _1_3 = bright-cyan, because background value is ignored.
set HCOLOUR=0103
 
# --- FOOTER HELP TEXT TO DISPLAY AT BOTTOM OF SCREEN ---
# HBTM = Bottom HELPTEXT POSITION YYXX - for 640x480 use HBTM=2802 - for 800x600 use HBTM=3502  (Note: HPAD is NOT used to pad out the HELPTEXT). For GFX=none use HBTM=2400 or set >24 for off-screen.
set HBTM=3502
 
# Colour of HELPTEXT (see HCOLOUR above for meaning)
set FCOLOUR=0103
 
# use \x20 for no text at the bottom of the menus - e.g. set HELPTEXT=\x20   (%^LANG% will display the current language); use %@date% or %day%-%month%-%year% for date
set HELPTEXT=HDD0 [F7]   Back [F8]   Reboot [F9]   Power Off [F10]  (%^LANG%)
 
 
# -------- MENU COLOURS -------
# Colour pairs are Text/Background - i.e cyan/blue = cyan text on blue background (background colour used only if 8-bit colours used)
# Must use black if a transparent background is required for menu highlight background - e.g. highlight=red/black
# Valid 8-bit colours are: black, blue, green, cyan, red, magenta, brown, light-gray, dark-gray, light-blue, light-green, light-cyan, light-red, light-magenta, yellow and white.
#  normal    = normal menu text
#  highlight = highlighted menu text when a menu entry is selected
#  helptext  = the colour of the title help text shown just below the menu box
#  standard  = the console background and text colours (e.g. when listing files)
#  border    = the colour of the border of the menu box
#
# For GFX Boot menu, only color standard=xxxx/yyyy is valid (suggest use black background - e.g. color standard=cyan/black)
#
# -------- 8-BIT MENU COLOURS -------
color normal=light-cyan/black highlight=red/black helptext=yellow/black standard=light-cyan/black border=light-gray/black
#
# -------- 24-BIT MENU COLOURS -------
# You can instead set a 24-bit full colour value using 0xRRGGBB, the value must be larger than 0xFF to work correctly however
# in graphics mode (e.g. 800x600) only highlight colour can have a background colour - all others have transparent background colour
# the background colour will be set to black (transparent in graphics mode menus) if value is in range of 0x100 to 0xFFFFFF (not case sensitive)
#          0xRRGGBB         0xRRGGBB        0xRRGGBB  - See http://www.rapidtables.com/web/color/RGB_Color.htm
# e.g. Red=0xFF0000   Green=0x00FF00   Blue=0x0001FF  (value must be larger than FF so use 01FF!), Yellow=0xFFFF00, White=0xffffff, Brown=0x994c00
#
# Examples:
### color helptext=0xFFFFFF
### color standard=0x994c00
### color border=0xFF0000
### color normal=0x777700
### color highlight=0xFFFF00 ;; # yellow + background will be transparent
# highlight colour can also have a background colour
### color highlight=0x0022222200FFFF00  ;; # yellow + background will be 222222 (v. dark grey/black)
 
# ----- MENU POSITION ---
# n = unchanged  (if wdspace or lnspace is not n then screen is cleared) - default for wdspace and lnspace is 0 or n
# if using GFX=none for text mode and CENTREHD=1, set menuw=78 and rstart=2 to get centred menu headings, max lines = 25, so change nomitems and topstart
# Note: The grub4dos menu system allows 4 lines of menu help text + 1 line for it's own messages (e.g. default timeout)
# Therefore you need to leave space for 5 free lines of text under the menu (e.g. if tophelp=26, then lines 26,27,28,29 & 30 are used for help text)
# 800x600 = 100 characters (0-99) by 37 lines (0-36),  1024x768 = 128 characters (0-127) by 48 lines (0-47)
# You can increase line separation using (for example) lnspace=8. Note that you will need to reduce topstart and noitems too
# rstart should be 2 or greater, do not use 0 or 1 or you may see offset text
# space between characters (best to leave this alone!)
###set wdspace=n
# space between lines (best to leave this alone of maybe use 2) - this affects number of lines per screen
###set lnspace=n
# width of menu border (0= no border)
set bdwidth=1
# right hand side starting column of menu (use 2 or more)
set rstart=3
# width of menu area
set menuw=62
# line at which to start menu area
set topstart=2
# number if menu items (=height of menu)
set noitems=24
# line on which to display menu help text under menu area
# use tophelp = topstart + noitems  for menu help text just under menu box - for 640x480  noitems=18 tophelp=20 - for 800x600  noitems=24 tophelp=26
set tophelp=26
###set /a tophelp=%topstart% + %noitems% > nul
 
 
# ---- SHOW FILE EXTENSIONS IN MENU ----
# Don't show file extensions in menu
set EXTOFF=1
# Show file extensions in menu
### set EXTOFF=
 
# --- NO USER PROMPT FOR .imgPTN FILES -----
# .imgPTN AUTO-RUN - if any .imgPTNxxx family is selected, switch partitions and display CSM menu with no user prompt
### set AUTOCSM=1
 
# --- BEEP INTERNAL BOARD SPEAKER WHEN MAIN MENU LOADS ----
# Beep when Main Menu loads, values 1, 2 or 3 only (only works if internal speaker fitted to system)
### set beep=3
 
# On first boot to E2B play some tunes when menu loads (grub4dos 0.4.6a 2018-06 and later) - copy .g4b file to /_ISO folder and edit it, if you want to modify the tune
### if not exist DONEMENU call /_ISO/docs/Tunes/AxelFoley_Loop.g4b
 
# Suppress the QRUN.g4b 'best file extension suggestions' and advice messages + no pause in isoboot
### set NOSUG=1
 
# NOWINXP removes the 'Boot from HDD0', 'List PCI devices' and the 32/64bit menu separator from the Windows Menu
# useful to keep the menu tidy if you do not have WinXP ISOs
### set NOWINXP=1
 
 
# --------------------------------------- ADVANCED MENU SETTINGS ------------------------------------------------------------------------------
# DO NOT DELETE THE LINE ABOVE! - Settings below this next line will be preserved when using the E2B_Editor.exe
 
# Tip: To permanently remove the grub4dos boot text at top of screen and grub4dos startup messages, run \_ISO\docs\patchme from the grub4dos console
# See https://easy2boot.com/configuring-e2b/mye2b-cfg/ - patching grub4dos
 
# Silent MBR boot of stage 1.5 grub4dos (works for both 0.4.5c and 0.4.6) - one reboot is required for it to permanently take affect.
### if exist /_ISO/docs/PatchMyMBR call /_ISO/docs/PatchMyMBR > nul
# Silent startup of grub4dos - no diagnostic/info messages (only works for 0.4.6a by changing debug msg=2 to debug msg=0) - permanently changes /grldr files (please use \_ISO\docs\patchme for patch if not using 0.4.6)
### cat --locate=\x02 --replace=\x00 --skip=0x2073 --length=1 /grldr > nul
### if exist /%grub%/grldr_046 cat --locate=\x02 --replace=\x00 --skip=0x2073 --length=1 /%grub%/grldr_046 > nul
 
# ---- IF YOU ARE USING A REMOVABLE USB FLASH DRIVE FOR E2B (or are not going to use a 'Helper' USB flash drive) ---
# no need to search for WINHELPER.USB so set NOHELPER=1 (or use if E2B hangs at 'Looking for WINHELPER.USB...' )
# speeds up booting to Main Menu slightly - only use if E2B drive is Removable Flash drive!
###set NOHELPER=1
 
# Suppress Win8/10/2016/2019 'Press any key for Windows Repair/Setup only...' prompt
###set NOREPAIR=1
 
# If you set the TSUG variable (suggested timeout in seconds) in your \_ISO\MyE2B.cfg file, you can change the timeout behaviour of QRUN.g4b Auto-Suggest, e.g.
# No timeout - auto-suggest will always wait for the user to press a key
###set TSUG=0
# Change auto-suggest timeout (1-989)  - e.g. 10 = wait 10 seconds
###set TSUG=10
# use default timeout of 6 seconds, but if user does not press a key, always use the suggested file extension (if it is not .isoask), valid range = 990 to 999
###set TSUG=993
# Always wait for user - if user presses ENTER only, the suggested file extension will be used instead of the current file extension
###set TSUG=990
 
# --- GRUB4DOS 0.4.6 + USB DRIVERS ---
# The file \grldr is the grub4dos code that is loaded on booting. If you want to use v0.4.5c on boot-up then overwrite it using the file \_ISO\e2b\grub\grldr_045
# Grub4Dos 0.4.6 has built in USB drivers and so it can bypass the BIOS USB code - useful if you have buggy BIOSes
# Tip: Hold down the SHIFT key just before E2B starts to boot and E2B will load the grub4dos fast USB rd/wr driver automatically
# To ALWAYS use grub4dos 0.4.6 and initialise the USB 2 drivers on start-up use GRUB_USB=Y  (not recommended - can cause problems)
### set GRUB_USB=Y
 
# Automatically load grub4dos usb 2.0 driver if Plop! boot loader has been used
# Used when booting E2B under VMWare when using a Plop! boot ISO
### set TESTPLOP=1
 
# To ALWAYS switch to version 0.4.5 and use \_ISO\e2b\grub\grldr_045 (not recommended as some functions may not work)
###set GRUB_USB=045
 
# To prevent E2B refusing to boot if partition 4 (hd0,3) is present, uncomment the two ### lines below - 
# WARNING: THIS WILL ERASE PTN #4 (hd0,3) ON THE E2B DRIVE EACH TIME YOU BOOT! ONLY USE WITH E2B USB DRIVES!
###if exist (hd0,0)/_ISO/MyE2B.cfg partnew (hd0,3) 0 0 0 
###if exist (hd0,1)/_ISO/MyE2B.cfg partnew (hd0,3) 0 0 0 
# To always erase ptn 3 on boot, uncomment the two ### lines below - check ptn 3 is not used or you may delete a data partition on your E2B drive!
# WARNING:  THIS WILL ERASE PTN #3 (hd0,2) ON THE E2B DRIVE EACH TIME YOU BOOT! ONLY USE WITH E2B USB DRIVES!
###if exist (hd0,0)/_ISO/MyE2B.cfg partnew (hd0,2) 0 0 0 
###if exist (hd0,1)/_ISO/MyE2B.cfg partnew (hd0,2) 0 0 0 
 
# ----- PROGRESS MESSAGE CONTROL ----
# Display background image and cursor immediately so startup messages are printed over the background (but screen won't scroll nicely if it gets full of text!)
# call Fn.70 3
# Set cursor outside of the screen so no text or cursor is seen for a while (cursor set to column 0  row 128!)
# call Fn.5 0 128
# Turn off cursor and splashimage until Main Menu is shown - useful if you have disabled startup messages and don't want the cursor character at the top of the screen!
# call Fn.70 0 ;; clear
# If you want to get rid of any earlier screen text use clear
# clear
 
# Examples (use ONE of the following lines by removing the ### characters)
# Use this line for a blank screen startup with no progress messages. Tip: use patchme to prevent early grub4dos messages (see \_ISO\docs\PatchMe_ReadMe.txt)
###call Fn.70 0 ;; clear ;; call Fn.5 0 128 ;; set redirp=> nul ;; set redir=> nul
 
# Use this line to display the background image as early as possible
###call Fn.70 3 ;; set redir=> nul 
 
# Use this line to display the background image as early as possible with no startup messages except an initial quick 'Please wait...' message
###call Fn.70 3 ;; set redir=> nul ;; set redirp=> nul ;; debug -1 ;; pause --wait=1 Please wait... ;; debug 0
 
 
# ---- E2B STARTUP AND OTHER MESSAGES ----
# SUPPRESS STARTUP FILE ENUMERATION INFORMATIONAL MESSAGES from AUTOMN.g4b, etc.
###set redir=> nul
 
# SUPPRESS OTHER (important) E2B MENU.LST PROGRESS MESSAGES (NOT recommended!)
###set redirp=> nul
 
# Note: redir and redirp may affect the messages displayed when a .imgPTN file is selected. Read more at https://easy2boot.com/configuring-e2b/mye2b-cfg/
 
# Display ASCII Easy2Boot text for 1 second (see http://www.askapache.com/online-tools/figlet-ascii/ or http://www.ascii-art-generator.org/ - use 99 as width)
###graphicsmode -1 800 > nul ;; cat /%grub%/ASCII_E2B.txt && pause --wait=1 > nul
 
# ---- MENU NUMBERING ----
# E.g. The user can type '23' to select item 23 in the menu and so it is useful to have the menu item numbers displayed on the menu.
# Auto-numbering is enabled by default (AUTONUM=0x2001).  AUTONUM=CCMM where CC is the marker/arrow character (byte) and MM is 00 (off), 01 (number bootable entries) or 02 (number all entries) 
# Use AUTONUM=0x2000 to turn auto-numbering off, 0x2001 sets numbering on with a space after number (default), 0x2d01 autonumber with hyphen after number, 0x1a01 arrow, 0x3a01 colon, 0x0701 dot
# e.g. 0x2d00=►menutext, 0x2d01=►nn-menutext  (where nn=two-characters for menu numbering 0-9/10-99)
# Turn off auto-numbering
###set AUTONUM=0x2000
 
# Turn off the arrow menu pointer (safer than using write 0x8308 0) (E2B v1.A0+) setmenu --triangle-off requires grub4dos 0.4.6a 2018-07 or later
### setmenu --triangle-off ||  write 0x8308 0 > nul
 
# --- ADVANCED MENU CONFIGURATION ----
 
# set a short bar for background of highlighted menu entry (E2B v1.A0+) requires grub4dos 0.4.6a 2018-07 or later
###set SHORT_HL=1
 
# centre the menu entries inside the menu area (and centre help text under menu) - requires grub4dos 0.4.6a 2018-07 or later
###setmenu --middle-align
 
# sets the Default menu entry that will be highlighted when the WINDOWS INSTALL MENU is displayed
###set  DEFM_WIN=1
 
# If DEFMENU=0 then the '0 Set default menu entry and timeout' menu item in the Main menu will not be listed
###set DEFMENU=0
 
# WINCOUNT variable will cause all the \_ISO\Windows ISOs to always be enumerated on a FASTLOAD boot
###set WINCOUNT=1
 
# If NOF7HD is set then the 'Boot from HDD0 F7' menu entry is suppressed in all menus
###set NOF7HD=1
 
# If the NOF8B is set then the Windows menu will not display 'F8 Back to Main Menu' 
###set NOF8B=1
 
# if NOF8MAIN is set then no F8 Main menu entry will be available
###set NOF8MAIN=1
 
# If NOF9R is set then the 'F9 Reboot menu' item will not be listed in any menu (remember to change HELPTEXT too)
###set NOF9R=1
 
# If NOF10H is set then the 'F10 Power Off/Halt' menu item will not be listed in any menu (remember to change HELPTEXT too)
###set NOF10H=1
 
# Don't display the F1 HELP entry in the Main menu
###set NOF1=1
 
# NO FASTLOAD MENU - If you don't want the user to see the Main Menu entry to enable or disable FASTLOAD
###set NOFLDMNU=1
 
# NOWMENU causes a Windows Install sub-sub menu to return back to the Main menu rather than return to the Windows Install menu
###set NOWMENU=1
 
# NOWINMAIN cause the Windows Main Menu entry to be suppressed (even if there are \_ISO\WINDOWS\xxx\yyy.ISO files present
###set NOWINMAIN=1
 
# hstart = x position of menu help text (default = rstart-1), min = 1, 0=use menu width and menu start
# hwidth = width of menu help text (default = menuw+2), 0=use whole width - 2 x hstart
# Warning: Graphics corruption will occur if you exceed the width of the screen (hwidth+hstart
### set hwidth=70 && set hstart=6
 
# Write text to the menu (grub4dos 0.4.6a only) - --string=x=y=colour="text" - all commands are cached\remembered by grubdos until menu is re-loaded (max. 16 strings)
# clear all previous strings
###setmenu --string=
# write a string to grub4dos display cache buffer (max 16 commands allowed)
###setmenu --string=69=18=0xFF00FF="Hello"
 
# You can also draw lines and boxes - see easy2boot.com/configuring-e2b/draw-box/
 
# --- CHARACTER SET FONTS ----
 
# Font settings - specify alternate unifont hex file which is loaded after the E2B unifont file is loaded - many 16-pixel fonts are in /_ISO/docs/Fonts/ folder
# Special non-ANSI characters are not included, so only suitable for English language really
# if the filename contains ".f24" E2B will use large fonts without needing 'set FONTH=24' to be set
###set FONT=()/_ISO/docs/Fonts/terminus.uni.gz
 
# Use Default BIOS Font (tends to be thick+bold for standard ASCII characters)
###set BIOSFONT=1
 
# Do not load unifont fonts - if NOUNIFONT=1 then the standard E2B unifont font file is not loaded (to save time) but only ANSII characters will be displayed
### set NOUNIFONT=1
 
# LARGE FONTS - FONTH specifies the font height - only valuies of 16 or 24 are allowed (default = 16 = full unifont character set)
# If you set FONTH=24 E2B will use a *limited* default set of 24-pixel high fonts (grub4dos 0.4.6a only)
###set FONTH=24
# If you set FONT24 to the path of a 24-pixel font, E2B will use that font as the default font
# Remember to set HBTM correctly to prevent the screen from scrolling!
###set HBTM=2300
 
# You can also load your own font after the default fonts have been loaded by using the FONT parameter - if FONTH=24 then the hex font file must be 24-high format 
# If 24 pixel high: 1024x768=85 chars x 32 lines, 800x600=66x25 lines
# 24 pixel high fonts: yxt.f24=trad Chinese, ltxxx.f24, terminal.f24, developer.f24, X11.f24 - some fonts may not work in some languages
###set FONT=/_ISO/docs/Fonts/developer.f24
 
# ----------- DISABLE AUTOMENU feature -----------------
# E2B will allow you to press the first letter of a menu item to jump to it - grub4dos keys p, e, b and c keys will only work if SHIFT is held down
# AUTOMENU = OFF will disable the AUTOMENU jump feature and special grub4dos p, e, b, c keys must be lower case (don't hold down SHIFT key)
###set AUTOMENU=OFF
 
# SET DEFAULT MAINMENU ITEM AND TIMEOUT
# Information: Create an \_ISO\menu_defaults.txt file
# Set the default entry and timeout in the menu_defaults.txt file (debug 0 prevents menu item number at top right from being displayed) 
# DO NOT UNCOMMENT THE LINES BELOW! They should not be set in this file!
# e.g. use these 3 lines in the menu_defaults.txt file for the first menu item as default and 0 seconds timeout (-1) - remove the # signs
#   default 0
#   timeout -1
#   debug 0
# This will fix which initial main menu default entry will be highlighted and the timeout in seconds.
# You must also set DEFMENU=0 to suppress the 'Set default menu entry and timeout' menu entry
 
# ---- GFX menu support ----
#  If you really want to use a gfxmenu or @[email protected] or GFX-RIPPER then specify the 'message' file here - https://easy2boot.com/configuring-e2b/gfx-menu-support/
#  There are many gfxmenu limitations (on error goes into text mode, no timeout or default option, number of ISOs cannot be displayed, etc. etc.)
# Tip: grub4dos 0.4.6a and E2B now supports large fonts - see FONTH below
# Place your gfxmenu file in the /_ISO folder. Change the GFX= line to match the name of your file (path is always relative to \_ISO)
set GFX=
###set GFX=message
###set GFX=docs/Templates/GFXMenu/message
 
# ---- TEXT MODE (no fancy wallpaper and no unicode font used - quick to load) ---
# NO GRAPHICS MODE OR WALLPAPER or GFXMenu
# Text-mode menu (no wallpaper) - suppresses graphics mode (must use 'GFX=none') for 80x25 lines
# Try these settings if using text mode - set HBTM=2301 set HCOLOUR=0104 set FCOLOUR=0104
# and use these text colours - color normal=light-cyan/dark-gray   highlight=red/cyan  helptext=yellow/light-gray  standard=light-cyan/black border=red/black
# See "\_ISO\docs\MyThemes\TextMinimal.cfg" for an example MyE2B.cfg file.
###set GFX=none
 
# ---- KEYBOARD TYPE -----
#set which keyboard you are using (use one only!) - see the KBD_xxxx.g4b files in the grub folder if you want to modify the key mapping
#Note: Passwords may not work properly if the keyboard scan code mapping is not correct! Default = US keyboard (set KBD=)
###set KBD=KBD_AZERTY.g4b
###set KBD=KBD_FRENCH.g4b
###set KBD=KBD_GERMAN.g4b
###set KBD=KBD_ITALIANO.g4b
###set KBD=KBD_JAPAN_106.g4b
###set KBD=KBD_QWERTY_UK.g4b
###set KBD=KBD_QWERTZ.g4b
###set KBD=KBD_SPANISH.g4b
 
# set the keyboard type now (optional)
# the next line ensures the correct keyboard scan codes will be recognised if using a non-USA keyboard (not required unless asking for password later on in this cfg file)
###if not "%KBD%"=="" call /%grub%/%KBD% > nul
 
# ---- LANGUAGE SUPPORT ----
# To change language from ENGlish, look for supported language folders in the \_ISO\e2b\grub\xxx folders
# e.g Arabic. Uncomment first line below to right-align menu entries. RTL=1 means use menuw value - or set RTL=  - e.g. 'set RTL=58' to adjust position of menu headings
# use RTL for RIGHT-TO-LEFT LANGUAGES only, GERMAN_ALT has different alignment of [hotkey] characters in menu
###if "%LANG%"=="" set LANG=ARABIC && set RTL=1 && set AUTONUM=0 && write 0x8308 0 > nul
###if "%LANG%"=="" set LANG=CZECH
###if "%LANG%"=="" set LANG=DUTCH
###if "%LANG%"=="" set LANG=ENG
###if "%LANG%"=="" set LANG=FRENCH
###if "%LANG%"=="" set LANG=GERMAN
###if "%LANG%"=="" set LANG=GERMAN_ALT
###if "%LANG%"=="" set LANG=GREEK
###if "%LANG%"=="" set LANG=ITALIAN
###if "%LANG%"=="" set LANG=POLISH
###if "%LANG%"=="" set LANG=PORTU_BRAZIL
###if "%LANG%"=="" set LANG=ROMANIAN
###if "%LANG%"=="" set LANG=RUSSIAN
###if "%LANG%"=="" set LANG=SIMP_CHINESE
###if "%LANG%"=="" set LANG=SPANISH
###if "%LANG%"=="" set LANG=SWEDISH
###if "%LANG%"=="" set LANG=TRAD_CHINESE
###if "%LANG%"=="" set LANG=UKRAINIAN
###if "%LANG%"=="" set LANG=VIETNAMESE
 
# User Language Selection example code - prompt user before Main Menu is displayed - see \_ISO\e2b\grub folders for all available languages
# Uncomment all the following lines (remove ###) to ask user to choose a different language (edit as required)
###if not "%DONEMENU%"=="" goto :skplang
###echo CHOOSE A LANGUAGE
###echo
###echo C  = Chinese (Simplified)
###echo TC = Chinese (Traditional)
###echo E  = English
###echo G  = German
###echo S  = Spanish
###echo
###set /p ask=Which language : 
###if /i "%ask%"=="C" set LANG=SIMP_CHINESE
###if /i "%ask%"=="TC" set LANG=TRAD_CHINESE
###if /i "%ask%"=="G" set LANG=GERMAN
###if /i "%ask%"=="S" set LANG=SPANISH
###if /i "%ask%"=="E" set LANG=ENG
###:skplang
 
#  ----- SOUND ALARM IF SOMEONE BOOTS WITHOUT CAPS LOCK ON ------
# Check for CAPS LOCK on boot - if not on then sound alarm and switch off system if user presses a key
# get special keys - e.g. SHIFT, CTRL, etc. into n for use later
###set n=0
###/%grub%/bios int=0x16 eax=0x00000200 > (md)0x300+1
###cat --skip=12 --length=2 (md)0x300+1 | set /a n=0x > nul
# bits in n = LShift=01, RShift=02, CTRL=04, ALT=08,SCROLL=0x10, NUM=0x20, CAPS=0x40, INS=0x80
###if exist n calc %n%&0x40 > nul || if not exist DONEMENU set n=xxx && beep --play=255 400 20 500 20 600 20 700 20 800 20 900 20 1000 20 1100 20 1200 20 1300 20 1400 20 1500 20 1600 20
###if "%n%"=="xxx" echo HALT! && halt
###set n=
 
#   ---- PASSWORD PROTECTION -----
# E2B default menu edit password is easy2boot
# The line below will set a password of 'easy2boot' to stop users editing the menus accidentally (encrypted)
# You can use an encrypted md5 value or a plain text value (see easy2boot.com - Configure E2B - Protection and Security for md5 calculation details)
# If you want to edit the menus, press p and then enter the password (or you can use an unencrypted password like this: 'set pwd=fred')
# Does not work if using GFX Menu
# Set encrypted password of easy2boot
###set pwd=--md5 $1$1$okAQ3AJUdhqf3TVrwKvJP1
# OR set plain text password of fred
###set pwd=fred
 
# Any payload file extensions ending in "pwd", e.g. Ubuntu.isopwd, will ask for a password before they will run
# If menupwd is defined, then that will be the required password for the payload file
# If menupwd is not set then the pwd (E2B menu edit password) will be used (if set)
# e.g. if file = Ubuntu14.1.isopwd or Win7Install.imgPTNpwd  and menupwd=fred then you must enter fred before the payload will run
#      if both menupwd and pwd are not set, then no password will be prompted for
# Can use md5 encrypted password or plain text...
### set menupwd=--md5 $1$fzr3$gtBm4hqXA1CohTSpMsuxG1
### set menupwd=fred
 
# --- MASTER PASSWORD ---
# To prompt user for password or PIN code, we must set up graphics, etc. now
# GMODE was already set in the lines above - run graphicsmode before splashimage
###graphicsmode -1 %GMODE% > nul
# If you want to display a different background bitmap just for the Master password user input (see below), use these 3 lines below
###call Fn.70 3
###splashimage /_ISO/docs/Templates/Aliums/Aliums.bmp.gz > nul
###clear
# for a better method of password input, see easy2boot.com/configuring-e2b/protection-and-security/
# the next line changes the font immediately but can cause a delay whilst it loads - ensure in graphics mode
###font ()/%grub%/unifont.hex.gz
# You should have already set the keyboard type previously (e.g. QWERTZ)
:mpwd
# If you want to set a Master password for Easy2Boot to prevent anyone from using it on first boot
# (e.g. 'fred') uncomment and edit the lines below (you can use password --md5 xxxxxxxx format if you wish)
###if exist DONEMENU goto :pok
###clear && echo && echo ENTER E2B MASTER PASSWORD
###debug 0
###password fred && goto :pok
###echo && set /p:2 ask=WRONG PASSWORD!
###goto :mpwd
:pok
###if not exist DONEMENU echo
 
# To reboot if the password is wrong, replace the line   goto :mpwd    with the grub4dos command     reboot
 
# This will cause the wallpaper background to be always loaded before displaying the Main Menu - only needed if you enable FASTLOAD *AND* use splashimage for Master password as above
###set DONEMENU=
 
# --- MONTHLY PIN CODE ---
# The user must enter the "4 digit PIN code of the month"
# Windows PIN CALCULATOR app is available on request
# VARIABLES BELOW CAN AFFECT ACTIONS OF TP.g4b
# SEED - 4 digits - this is your special SEED number - default is 1985
# set number of allowed attempts - default is very large!
#
# SPECIAL OPTIONS: TESTPIN and PINRETURN
# set TESTPIN as first user guess or else user will be prompted for PIN code - if pin code is wrong, user will be prompted again (unless ATTEMPTS=1)
# if PINRETURN is set then call to TP.g4b will always return after n ATTEMPTS or on success. PINRETURN=OK if correct pin number was used.
# Typical use: Uncomment only the 6 ### lines, set ATTEMPTS and SEED. E2B Version line can be altered for any special message you like. 
# Do not uncomment ##SS# lines unless needed (see https://easy2boot.com/configuring-e2b/protection-and-security/)
###if not exist /%grub%/TP.g4b halt
###if exist DONEMENU goto :TPfin
###set SEED=1985
###set ATTEMPTS=3
##SS#set TESTPIN=8684
##SS#set PINRETURN=1
###echo E2B VERSION %VER% 
###call /%grub%/TP.g4b
##SS#if not "%PINRETURN%"=="OK" reboot
##SS#if "%PINRETURN%"=="OK" clear
:TPfin
 
# --- ENCRYPT FILES ---
#Tip: For even better security, use 7Zip to compress this MyE2B.cfg file to GZip format or use lzma.exe (See easy2boot.com - Configure E2B - Protection and Security)
#     \_ISO\docs\E2B Utilities\LZMA has useful batch files to encrypt files
#     You must keep the file name unchanged (e.g. MyE2B.cfg) and can also set it's file attribute to 'Hidden' and 'System' or set permissions if NTFS E2B drive used.
 
# ---- SET AN EXPIRY DATE - EXAMPLES -----
# Change the 20160320 date below to alter the expiry date and change the message - you can use reboot instead of halt, Fn.73 3 waits for 3 seconds
###if 20160320
 
# Use this code to only allow use on weekdays
###call /%grub%/dow.g4b %@date:~0,4% %@date:~5,2% %@date:~8,2% 
###if "%dow%"=="0" echo It's Sunday! && call Fn.73 3 && halt
###if "%dow%"=="6" echo It's Saturday! && call Fn.73 3 && halt
###set dow=
 
# See http://www.rmprepusb.com/tutorials/grubutils#TOC-Another-Batch-file-example---use-checkdate.g4b-to-check-an-Expiry-Date
# set 14 day expiry date from 28th March 2016
###call /_ISO/e2b/grub/checkdate.g4b 2016 03 28 14 SILENT
###if not "%CHECKDAT%"=="OK" echo E2B HAS EXPIRED! && call Fn.73 3 && halt
###set CHECKDAT=
 
# --- CLONE PROTECTION (lock to this drive only) ---
# This code gets the exact size of the E2B USB drive to prevent it being copied and run from another USB drive.
# get number of sectors using INT 13h AH=48 into memory at DS:SI+10h  - edx=80h is hard disk 0, 81h would be hard disk 1
# Change number 12345678 to match the size returned by your drive. Change halt to reboot if desired. Delete pause line if not required.
###debug 1 ;; echo xxxxxxxxxxxxxxxxxxxxxxxxx > (md)0x300+1 ;; write 0x60000 0x42 > nul ;; write 0x60010 0 > nul
###/%grub%/bios int=0x13 eax=0x4800 edx=0x80 ds=0x6000 esi=0x0 > nul ;; read 0x60010 > nul ;; set /a END=%@retval%-1 > nul
###if not %END%==12345678 pause THIS DRIVE ENDS AT SECTOR %END%
###if not %END%==12345678 halt
###set END=
 
 
# --- MENU ENTRY SPACING ---
 
# grub4dos 0.4.6a allows you to set the spacing between text characters and between lines on the menu, default = 0:0  (Font spacing : Line spacing]
# note that altering the line spacing will mean you will need to adjust your menu size/position parameters and text postitions, etc.!
###setmenu --font-spacing=1:2 > nul
 
# ---- DEFINE GLOBAL HOTKEYS (for all menus) ------
 
# See https://easy2boot.com/configuring-e2b/global-hotkeys/
 
# Set global hotkey CTRL+R for FASTLOAD Refresh - only defined if /FASTLOAD.YES is present
###if exist (bd)/FASTLOAD.YES ()/%grub%/hotkey [Ctrl+R] "clear && echo REFRESH > /FASTLOAD.YES && configfile /%grub%/menu.lst" > nul
 
# Program hotkeys to work in ALL menus - no separate menu entry is required. Some examples shown below.
# Add global hotkeys - examples only - use ;; or ;& or && to separate commands. 
# Use @ to prevent commands displaying on screen when hotkey pressed - e.g. "@(bd)/%grub%/qrun.g4b force.isodefault  /_ISO/Linux/Ubuntu.iso ;; boot" > nul
###()/%grub%/hotkey [F9] "reboot" > nul
###()/%grub%/hotkey [F10] "halt" > nul
###()/%grub%/hotkey [Ctrl+F9] "clear && echo \nLoading Windows menu... && /%grub%/configX.g4b /%grub%/MenuWinInstall.lst" > nul
###()/%grub%/hotkey [ctrl+F7] "clear && echo $[0004] \n\nPress a key to reboot\n && pause && reboot" > nul
 
#Disable Ctrl+F8 hotkey
###()/%grub%/hotkey [Ctrl+F8]
 
# Set Ctrl+F8 hotkey to Reload E2B (if E2B menu not working)
####()/%grub%/hotkey [Ctrl+F8] "map --unhook ;; map --unmap=0:0xff > nul ;; root (bd)/ > nul ;; chainloader /grldr > nul ;; boot" > nul
 
# F11 boots to an ISO
###()/%grub%/hotkey [F11] "(bd)/%grub%/qrun.g4b force.isodefault  /_ISO/Linux/Ubuntu.iso ;; boot" > nul
 
# F8 will always reload Main Menu (quick)
###()/%grub%/hotkey [F8] "set MFOLDER=/_ISO/MAINMENU && configfile (md)0xa000+0xA0" > nul
# or F8 will re-enumerate all files and load Main Menu
###()/%grub%/hotkey [F8] "configfile (bd)/%grub%/menu.lst" > nul
 
# F7 to boot from internal HDD
###()/%grub%/hotkey [F7] "map (hd0) (hd1) && map (hd1) (hd0) && map --hook && chainloader (hd0)+1 && rootnoverify (hd0) && boot" > nul
 
# Make the F1 key show the Help Menu from any menu (uncomment 3 lines below) - you can put your own help file in \_ISO\F1.cfg
###if exist /_ISO/F1.cfg   ()/%grub%/hotkey [F1] "configfile /_ISO/F1.cfg" > nul && goto :f1skp
###if exist /%grub%/%LANG%/F1.cfg ()/%grub%/hotkey [F1] "configfile /%grub%/%LANG%/F1.cfg" > nul && goto :f1skp
###if exist /%grub%/ENG/F1.cfg ()/%grub%/hotkey [F1] "configfile /%grub%/ENG/F1.cfg" > nul
:f1skp
 
# Clear only one global hotkey setting (can be used in .mnu files or .hdr and .lst files)
# e.g. clear F9 global hotkey
###()/%grub%/hotkey [F9] > nul
 
# Clear all global hotkeys and reload the hotkey program (only really useful in other menus - e.g. in $$$CONFIG\CONFIG.mnu files) 
###()/%grub%/hotkey -u > nul && ()/%grub%/hotkey -A > nul
 
#Load UTILITIES Menu using F6 key
###()/%grub%/hotkey [F6] "set MFOLDER=/_ISO/UTILITIES && set HDG=Utilities Menu && /%grub%/SubMenu.g4b" > nul
 
 
# ---- HIDE PAYLOAD MENU ENTRIES -----
 
# To hide a menu entry, create a .txt file of same filename as ISO and use:   iftitle [if exist SECRET] here is title\nhere is help text
# Then define Ctrl+F9 and Ctrl+F10 hotkeys (password is E2B)
# Read more: https://easy2boot.com/configuring-e2b/hide-payloads/
# Ctrl+F9 - Clear menu with wallpaper and prompt user for password in German language, switch to blue wallpaper if success
###()/%grub%/hotkey [Ctrl+F9] "call Fn.70 3 ;; clear && echo -e -n \nPasswort:\x20 && set SECRET= ;; call Fn.5 0 128 ;; password E2B > nul && set SECRET=1 && splashimage /_ISO/docs/Templates/blue/blue.bmp.gz ;; configfile (md)0x3000+0xA0" > nul
# Ctrl+F10 - Reset pwd and background, reload menu
###()/%grub%/hotkey [Ctrl+F10] "set DONEMENU= ;; configfile /menu.lst" > nul
 
# ----   OTHER SETTINGS ----
# XP ISO UNATTEND.TXT SUPPORT - if PICKAUTO is set then user will be asked to select \_ISO\WINDOWS\XP\*.AUTO files for Unattend.txt\Winnt.sif selection
# see https://easy2boot.com/add-payload-files/windows-install-isos/unattended-installs/
# .SIF file must have OemPreinstall=No or will get 'missing file' errors
###set PICKAUTO=YES
 
# Use if black screen on boot to XP Setup (some Dell systems with buggy BIOSes need this) - if 0 does not work, try 1-9  (default is -1)
###set E820=0
 
# ---- ZALMAN\IODD HDD ENCLOSURE -----
# If file extension is .ISO, then ask user how to run it (e.g. run as if .ISOPE or .ISOWINVH, etc.)
# Use if you have a Zalman Virtual CD USB HDD caddy you may want to keep all .iso files as .iso (tip: use a .txt file with a help entry to remind you which one works best!)
###set ISOASK=1
 
# --- MENU SORTING ---
# Turn off alphabetical sorting of menu entries (speeds up enumeration of menus slightly - NOT recommended!) - note multiple wallpapers won't work if you set this!
###set NOSORT=1
 
# --- CHECK BIOS FOR 137GB BUG ---
# Do not check the BIOS to see if it has the >137GB USB disk access bug (e.g. as found on some Asus EeePCs) Tip: try formatting the drive using RMPrepUSB first!
# Useful to suppress warning when your E2B drive is >137GB but E2B is on the first partition which is
###set CHECKBIOS=
 
#  ----- REDUCE MEMORY USAGE -----
# This disables the loading of batch file modules into memory for faster execution (so MOD=1 may slower - not recommended)
# If too many files or variables cause grub4dos to crash then uncomment the next line
###set MOD=1
 
# Use HLT instruction to reduce CPU cycles whilst waiting for keypress (stops CPU from getting too hot)
### write --bytes=1 0x8205 0x20 > nul
 
# --- DEBUG MODE - 
# Displays boot timings just before Main Menu is displayed - use for diagnosing/measuring slow boot times (can also press ! key during boot to show times)
###set SHOWTIME=1
# Always pause after menu file enumeration - Note: instead of using ENUMWAIT, just press the SPACEBAR during file enumeration and it will pause before it displays the menu
###set ENUMWAIT=1
 
# --- PROMPT USER FOR FASTER BOOT ----
# Add 3 lines below to prompt for faster boot option (for BIOSes with poorly-written and slow USB drivers) (will need to adjust menu size)
###set ask=
###if not exist DONEMENU set /p:3 ask=Speed up booting (no wallpaper or unifont not loaded) (Y/N) : 
###if not exist DONEMENU if /i "%ask%"=="Y" set NOUNIFONT=1 && set GFX=none && set noitems=16 && set tophelp=18 && set HBTM=2300
 
# --- STAMPS and ANIMATION ---
# see easy2boot.com for more details
# Specify stamps to overwrite the wallpaper. Format: set STAMPn=type=x=y (filespec), type: 0=normal, 0x80=transparent background
###set STAMP1=0x80=584=0   /_ISO/docs/Templates/Animate/easy2boot_stamp.bmp
###set STAMP2=0x80=680=160 /_ISO/docs/Templates/Animate/E2B.bmp
###set STAMP3=0x80=620=160 /_ISO/docs/Templates/Animate/LadyMorgana.bmp
###set STAMP4=0x80=580=380 /_ISO/e2b/grub/E2BPlate.bmp
 
# ANIMATE - displays a sequence - first file must end in 01.xxx (can be compressed bitmap using gzip or LZMA) - must use .bmp or .jpg as extension
# trans=transparent, infinite=animate on menu or add 1-15 for number of cycles, disable playing menu type=0x0
# 18 delay units = 1 second, x and y in pixels, last = last frame number in sequence 01.xxx-99.xxx or 001-255.xxx
###set trans=0x80 && set infinite=0x10
# display sequence on menu (with transparent background)
###set /A type=%infinite% + %trans% > nul
# play sequence 3 times immediately
###set /A type=%trans% + 3 > nul
###set delay=0x3
###set last=09
###set x=650
###set y=40
# use (bd) for boot drive or (hd0,0), so that if root drive changes it continues to load from correct drive.
###set FILE=(fd3)/frame_0001.bmp
###set ANIMATE=%type%=%delay%=%last%=%x%=%y% %FILE%
###set trans= && set infinite= && set delay= && set type= && set last= && set y= && set x= && set FILE=
# If using a floppy image, we must specify the location of the image
# The floppy disk image is loaded into memory and so the animation is faster and does not constantly access the disk
# ANIMFD3 is a floppy disk image file containing the files - it is mapped to fd3 by E2B
###set ANIMFD3=/_ISO/docs/Templates/Animate/E2B_GIF.ima
 
# remove the animation that is currently playing
###splashimage --animated=0
 
# ----- SOUND (BEEPS and TUNES) ------
 
# beep middle C 3 times with 1/5 second delays (Frequency in Hz   Duration in milliseconds), freq.=0 for delay. play=255 for infinite loop
###beep play=3 --nowait 262 200 0 200 
 
# call an E2B batch file to play tune each time main menu is loaded
###call /_ISO/docs/Tunes/Tetris_Loop.g4b
 
# call an E2B batch file (if F8 pressed to reload Main menu, do not play tune again)
###if not exist DONEMENU call /_ISO/docs/Tunes/Tetris_Loop.g4b
 
# ------ SET VARIABLES MYMEMMB and MYDISKGB ----------
 
# set B64 text and MYMEMMB for size of memory
###set /a M=*0x8298 & 0xffffffff>>10+1 > nul && set /a M1=*0x82c0>>10+1 > nul
###set /a M=%M% + %M1% > nul ;; set MYMEMMB=%M% ;; set M= ;; set M1=
 
# set GB4 variable if 4GB+ of memory present
###set /a M=*0x8298 & 0xffffffff>>10+1 > nul ;; set /a M1=*0x82c0>>10+1 > nul ;; set /a M=%M% + %M1% > nul ;; if %M%>=4096 set GB4=1 ;; set M= ;; set M1=
 
#get size of boot device in GB in MYDISKGB (allow for 2TB drives - max grub4dos +ve number is 0x7FFFFFFFFFFFFFFF 1TB)
###geometry (bd) > (md)0x333+1 ;; cat --locate=/512 --replace=\x00 (md)0x333+1 > nul ;; cat --locate=nt/Size= (md)0x333+1 > nul
###set /A a=%?%+8 > nul ;; cat --skip=%a% (md)0x333+1 | set a=
###set /a a=%a%>>2 > nul ;; set /a a=%a%/2048 > nul ;; set /a MYDISKGB=%a%/1024 > nul ;; set a= ;; set /a MYDISKGB=%MYDISKGB% nul ;; if "%MYDISKGB%"=="0" set MYDISKGB=1
  1. !BAT
  2. # IMPORTANT: This file MUST begin with !BAT
  3.  
  4. # Go to easy2boot.com for full details.
  5. #
  6. #   This file can be copied to \_ISO\MyE2B.cfg
  7. #   Edit it to change the language, Main heading, Footer, startup behaviour, etc.
  8. #   You can use E2B_Editor.exe to load this file and configure your own settings.
  9. #
  10. # HELP USING THIS .CFG FILE
  11. #   #    a single hash symbol comments out a line - these lines contain help or information - the # symbol should not be removed
  12. #   ###  three hash symbols means you can uncomment and use these lines - they contain example grub4dos commands which can be used to change the E2B settings
  13. #
  14. #   e.g.
  15. #       #  Auto menu      - this line should not be changed - do not delete the # symbol
  16. #       ###set DEFM_MNU=0 - this line can be uncommented by deleting the ### symbols and then changed by the user if required
  17.  
  18. # If you wish, you can delete any whole line beginning with # or ### to make the file smaller and more legible
  19.  
  20. #       SUB-MENU HEADINGS are in the STRINGS.TXT language files (for different languages)
  21. #       Menu entries and E2B phrases are also in each STRINGS.TXT file
  22. #       DO NOT EDIT THE \_ISO\e2b\grub\ENG\STRINGS.TXT file - copy it to \_ISO\e2b\grub\FRED\STRINGS.TXT and use 'set LANG=FRED' in this file to use it
  23. #       WARNING: If you have a \_ISO\STRINGS.txt file (for testing only), it will over-ride any language setting
  24.  
  25. #  ------ USE ALTERNATE CFG FILE FOR 800x600 ----
  26. # if you use 1024x768 (GMODE=1024), you can use the two lines below to use an alternate 800x600 MyE2B800.cfg config file if 1024x768 is not supported by the computer
  27. ###debug 1 ;; vbeprobe > (md)0x220+5 ;; debug 0
  28. ###cat --locate=1024x768x24 (md)0x220+5 > nul || /_ISO/MyE2B800.cfg && goto :EOF
  29.  
  30. #  ----- GRAPHICS MODE AND WALLPAPER -----
  31. # set graphics mode - use 640 or 800 (recommended) or 1024 - or specify full mode - e.g. 800 600 24
  32. # 800x600x24 is required for the default E2B background bitmap  - you can define exact size - e.g. GMODE=800 600  or  GMODE=800 -1 24:32 (800 by *anything* with 24 or 32-bit colour)
  33. set GMODE=800
  34.  
  35. # set the WALLPAPER BACKGROUND
  36. # The size of your background bmp must match the GMODE setting (e.g. use 1024x768 bitmap and set GMODE=1024)
  37. # Change the path and filename below if you wish - .bmp and .bmp.gz supported (.bmp can be compressed using LZMA_Encode). grub4dos 0.4.6a also supports .jpg files.
  38. set MYWBMP=/_ISO/mybackground.bmp
  39.  
  40. # If GMODE is set to a number (e.g. 800 or 1024 for graphics mode), then we can fill the screen with a single colour instead of using a bitmap
  41. # This is quicker than loading a bitmap file - the colour value must begin with 0x (zero x) and must be in RGB format 0xrrggbb
  42. ###set MYWBMP=0xff0033
  43.  
  44. #    --------- MAIN MENU HEADING -----
  45. # start the heading with \x20 if you need leading spaces.
  46. # special variables can be used. %B64% is CPU type + Memory size - e.g. [486MB 64-bit];  %VER% is E2B version - e.g. 1.65. Use %@date% or %day%-%month%-%year% for date
  47.  
  48. set HEADING=\x20 EASY2BOOT - MAIN MENU  (%VER%) %B64%
  49.  
  50. # Heading position is set by HEADPOS + HPAD - all menu headings are affected (must be 4 decimal numbers)
  51. # set start position of HEADING using HEADPOS=YYXX  - default position = HEADPOS=0000 = top-left, 0200 = 3rd line down - should always end in 00 if you use CENTREHD=1
  52. set HEADPOS=0000
  53. # HPAD sets space padding (alignment) before all menu headings - NORMALLY, NO NEED TO CHANGE THIS!
  54. # this is usually automatically calculated by E2B from the rstart value (\x20 is same as one space character)
  55. ###set HPAD=\x20              \x20
  56.  
  57. # ----- CENTRE ALL MENU HEADINGS -----
  58. # CENTREHD=xx causes the menu headings to be centred inside xx characters - e.g. if CENTREHD=60 then middle will be at (HPAD)+30
  59. # If CENTREHD=1 then the menuw value (see below) is used to calculate the centre position - Use CENTREHD=1 for normal auto-centred headings
  60. # To centre all headings across an 800 pixel display (i.e. not centred on menu width) use  CENTREHD=98, HEADPOS=0000, HPAD=\x20
  61. ### set CENTREHD=1
  62.  
  63. # ----- HEADING COLOUR -------
  64. # HCOLOUR sets the colour of the HEADING text 
  65. # HCOLOUR=ABCD specifies the text colour  [BLINK|BRIGHT_F|BACKGROUND|FOREGROUND]
  66. # A=0-1  1=BLINK text (does not work under VM or in graphics mode) - i.e. only works if GFX=none is used.
  67. # B=0-1  1=BRIGHT_F sets bright value for foreground text
  68. # C=0-7   =BACKGROUND colour - transparent if graphics mode so has no effect!
  69. # D=0-7   =FOREGROUND menu text colour
  70. # Colours parameters are: 0=black/grey 1=blue, 2=green, 3=cyan, 4=red, 5=pink, 6=yellow/brown, 7=grey/white.
  71. # You can instead specify a hex RRGGBB colour for FCOLOUR and HCOLOUR - e.g. set HCOLOUR=0x00FFFF (does not work if in text mode GFX=none)
  72. # e.g. 0133 is non-blinking bright cyan text (on a dark cyan background if not in graphics mode) - if a wallpaper is used (graphics mode) it becomes _1_3 = bright-cyan, because background value is ignored.
  73. set HCOLOUR=0103
  74.  
  75. # --- FOOTER HELP TEXT TO DISPLAY AT BOTTOM OF SCREEN ---
  76. # HBTM = Bottom HELPTEXT POSITION YYXX - for 640x480 use HBTM=2802 - for 800x600 use HBTM=3502  (Note: HPAD is NOT used to pad out the HELPTEXT). For GFX=none use HBTM=2400 or set >24 for off-screen.
  77. set HBTM=3502
  78.  
  79. # Colour of HELPTEXT (see HCOLOUR above for meaning)
  80. set FCOLOUR=0103
  81.  
  82. # use \x20 for no text at the bottom of the menus - e.g. set HELPTEXT=\x20   (%^LANG% will display the current language); use %@date% or %day%-%month%-%year% for date
  83. set HELPTEXT=HDD0 [F7]   Back [F8]   Reboot [F9]   Power Off [F10]  (%^LANG%)
  84.  
  85.  
  86. # -------- MENU COLOURS -------
  87. # Colour pairs are Text/Background - i.e cyan/blue = cyan text on blue background (background colour used only if 8-bit colours used)
  88. # Must use black if a transparent background is required for menu highlight background - e.g. highlight=red/black
  89. # Valid 8-bit colours are: black, blue, green, cyan, red, magenta, brown, light-gray, dark-gray, light-blue, light-green, light-cyan, light-red, light-magenta, yellow and white.
  90. #  normal    = normal menu text
  91. #  highlight = highlighted menu text when a menu entry is selected
  92. #  helptext  = the colour of the title help text shown just below the menu box
  93. #  standard  = the console background and text colours (e.g. when listing files)
  94. #  border    = the colour of the border of the menu box
  95. #
  96. # For GFX Boot menu, only color standard=xxxx/yyyy is valid (suggest use black background - e.g. color standard=cyan/black)
  97. #
  98. # -------- 8-BIT MENU COLOURS -------
  99. color normal=light-cyan/black highlight=red/black helptext=yellow/black standard=light-cyan/black border=light-gray/black
  100. #
  101. # -------- 24-BIT MENU COLOURS -------
  102. # You can instead set a 24-bit full colour value using 0xRRGGBB, the value must be larger than 0xFF to work correctly however
  103. # in graphics mode (e.g. 800x600) only highlight colour can have a background colour - all others have transparent background colour
  104. # the background colour will be set to black (transparent in graphics mode menus) if value is in range of 0x100 to 0xFFFFFF (not case sensitive)
  105. #          0xRRGGBB         0xRRGGBB        0xRRGGBB  - See http://www.rapidtables.com/web/color/RGB_Color.htm
  106. # e.g. Red=0xFF0000   Green=0x00FF00   Blue=0x0001FF  (value must be larger than FF so use 01FF!), Yellow=0xFFFF00, White=0xffffff, Brown=0x994c00
  107. #
  108. # Examples:
  109. ### color helptext=0xFFFFFF
  110. ### color standard=0x994c00
  111. ### color border=0xFF0000
  112. ### color normal=0x777700
  113. ### color highlight=0xFFFF00 ;; # yellow + background will be transparent
  114. # highlight colour can also have a background colour
  115. ### color highlight=0x0022222200FFFF00  ;; # yellow + background will be 222222 (v. dark grey/black)
  116.  
  117. # ----- MENU POSITION ---
  118. # n = unchanged  (if wdspace or lnspace is not n then screen is cleared) - default for wdspace and lnspace is 0 or n
  119. # if using GFX=none for text mode and CENTREHD=1, set menuw=78 and rstart=2 to get centred menu headings, max lines = 25, so change nomitems and topstart
  120. # Note: The grub4dos menu system allows 4 lines of menu help text + 1 line for it's own messages (e.g. default timeout)
  121. # Therefore you need to leave space for 5 free lines of text under the menu (e.g. if tophelp=26, then lines 26,27,28,29 & 30 are used for help text)
  122. # 800x600 = 100 characters (0-99) by 37 lines (0-36),  1024x768 = 128 characters (0-127) by 48 lines (0-47)
  123. # You can increase line separation using (for example) lnspace=8. Note that you will need to reduce topstart and noitems too
  124. # rstart should be 2 or greater, do not use 0 or 1 or you may see offset text
  125. # space between characters (best to leave this alone!)
  126. ###set wdspace=n
  127. # space between lines (best to leave this alone of maybe use 2) - this affects number of lines per screen
  128. ###set lnspace=n
  129. # width of menu border (0= no border)
  130. set bdwidth=1
  131. # right hand side starting column of menu (use 2 or more)
  132. set rstart=3
  133. # width of menu area
  134. set menuw=62
  135. # line at which to start menu area
  136. set topstart=2
  137. # number if menu items (=height of menu)
  138. set noitems=24
  139. # line on which to display menu help text under menu area
  140. # use tophelp = topstart + noitems  for menu help text just under menu box - for 640x480  noitems=18 tophelp=20 - for 800x600  noitems=24 tophelp=26
  141. set tophelp=26
  142. ###set /a tophelp=%topstart% + %noitems% > nul
  143.  
  144.  
  145. # ---- SHOW FILE EXTENSIONS IN MENU ----
  146. # Don't show file extensions in menu
  147. set EXTOFF=1
  148. # Show file extensions in menu
  149. ### set EXTOFF=
  150.  
  151. # --- NO USER PROMPT FOR .imgPTN FILES -----
  152. # .imgPTN AUTO-RUN - if any .imgPTNxxx family is selected, switch partitions and display CSM menu with no user prompt
  153. ### set AUTOCSM=1
  154.  
  155. # --- BEEP INTERNAL BOARD SPEAKER WHEN MAIN MENU LOADS ----
  156. # Beep when Main Menu loads, values 1, 2 or 3 only (only works if internal speaker fitted to system)
  157. ### set beep=3
  158.  
  159. # On first boot to E2B play some tunes when menu loads (grub4dos 0.4.6a 2018-06 and later) - copy .g4b file to /_ISO folder and edit it, if you want to modify the tune
  160. ### if not exist DONEMENU call /_ISO/docs/Tunes/AxelFoley_Loop.g4b
  161.  
  162. # Suppress the QRUN.g4b 'best file extension suggestions' and advice messages + no pause in isoboot
  163. ### set NOSUG=1
  164.  
  165. # NOWINXP removes the 'Boot from HDD0', 'List PCI devices' and the 32/64bit menu separator from the Windows Menu
  166. # useful to keep the menu tidy if you do not have WinXP ISOs
  167. ### set NOWINXP=1
  168.  
  169.  
  170. # --------------------------------------- ADVANCED MENU SETTINGS ------------------------------------------------------------------------------
  171. # DO NOT DELETE THE LINE ABOVE! - Settings below this next line will be preserved when using the E2B_Editor.exe
  172.  
  173. # Tip: To permanently remove the grub4dos boot text at top of screen and grub4dos startup messages, run \_ISO\docs\patchme from the grub4dos console
  174. # See https://easy2boot.com/configuring-e2b/mye2b-cfg/ - patching grub4dos
  175.  
  176. # Silent MBR boot of stage 1.5 grub4dos (works for both 0.4.5c and 0.4.6) - one reboot is required for it to permanently take affect.
  177. ### if exist /_ISO/docs/PatchMyMBR call /_ISO/docs/PatchMyMBR > nul
  178. # Silent startup of grub4dos - no diagnostic/info messages (only works for 0.4.6a by changing debug msg=2 to debug msg=0) - permanently changes /grldr files (please use \_ISO\docs\patchme for patch if not using 0.4.6)
  179. ### cat --locate=\x02 --replace=\x00 --skip=0x2073 --length=1 /grldr > nul
  180. ### if exist /%grub%/grldr_046 cat --locate=\x02 --replace=\x00 --skip=0x2073 --length=1 /%grub%/grldr_046 > nul
  181.  
  182. # ---- IF YOU ARE USING A REMOVABLE USB FLASH DRIVE FOR E2B (or are not going to use a 'Helper' USB flash drive) ---
  183. # no need to search for WINHELPER.USB so set NOHELPER=1 (or use if E2B hangs at 'Looking for WINHELPER.USB...' )
  184. # speeds up booting to Main Menu slightly - only use if E2B drive is Removable Flash drive!
  185. ###set NOHELPER=1
  186.  
  187. # Suppress Win8/10/2016/2019 'Press any key for Windows Repair/Setup only...' prompt
  188. ###set NOREPAIR=1
  189.  
  190. # If you set the TSUG variable (suggested timeout in seconds) in your \_ISO\MyE2B.cfg file, you can change the timeout behaviour of QRUN.g4b Auto-Suggest, e.g.
  191. # No timeout - auto-suggest will always wait for the user to press a key
  192. ###set TSUG=0
  193. # Change auto-suggest timeout (1-989)  - e.g. 10 = wait 10 seconds
  194. ###set TSUG=10
  195. # use default timeout of 6 seconds, but if user does not press a key, always use the suggested file extension (if it is not .isoask), valid range = 990 to 999
  196. ###set TSUG=993
  197. # Always wait for user - if user presses ENTER only, the suggested file extension will be used instead of the current file extension
  198. ###set TSUG=990
  199.  
  200. # --- GRUB4DOS 0.4.6 + USB DRIVERS ---
  201. # The file \grldr is the grub4dos code that is loaded on booting. If you want to use v0.4.5c on boot-up then overwrite it using the file \_ISO\e2b\grub\grldr_045
  202. # Grub4Dos 0.4.6 has built in USB drivers and so it can bypass the BIOS USB code - useful if you have buggy BIOSes
  203. # Tip: Hold down the SHIFT key just before E2B starts to boot and E2B will load the grub4dos fast USB rd/wr driver automatically
  204. # To ALWAYS use grub4dos 0.4.6 and initialise the USB 2 drivers on start-up use GRUB_USB=Y  (not recommended - can cause problems)
  205. ### set GRUB_USB=Y
  206.  
  207. # Automatically load grub4dos usb 2.0 driver if Plop! boot loader has been used
  208. # Used when booting E2B under VMWare when using a Plop! boot ISO
  209. ### set TESTPLOP=1
  210.  
  211. # To ALWAYS switch to version 0.4.5 and use \_ISO\e2b\grub\grldr_045 (not recommended as some functions may not work)
  212. ###set GRUB_USB=045
  213.  
  214. # To prevent E2B refusing to boot if partition 4 (hd0,3) is present, uncomment the two ### lines below - 
  215. # WARNING: THIS WILL ERASE PTN #4 (hd0,3) ON THE E2B DRIVE EACH TIME YOU BOOT! ONLY USE WITH E2B USB DRIVES!
  216. ###if exist (hd0,0)/_ISO/MyE2B.cfg partnew (hd0,3) 0 0 0 
  217. ###if exist (hd0,1)/_ISO/MyE2B.cfg partnew (hd0,3) 0 0 0 
  218. # To always erase ptn 3 on boot, uncomment the two ### lines below - check ptn 3 is not used or you may delete a data partition on your E2B drive!
  219. # WARNING:  THIS WILL ERASE PTN #3 (hd0,2) ON THE E2B DRIVE EACH TIME YOU BOOT! ONLY USE WITH E2B USB DRIVES!
  220. ###if exist (hd0,0)/_ISO/MyE2B.cfg partnew (hd0,2) 0 0 0 
  221. ###if exist (hd0,1)/_ISO/MyE2B.cfg partnew (hd0,2) 0 0 0 
  222.  
  223. # ----- PROGRESS MESSAGE CONTROL ----
  224. # Display background image and cursor immediately so startup messages are printed over the background (but screen won't scroll nicely if it gets full of text!)
  225. # call Fn.70 3
  226. # Set cursor outside of the screen so no text or cursor is seen for a while (cursor set to column 0  row 128!)
  227. # call Fn.5 0 128
  228. # Turn off cursor and splashimage until Main Menu is shown - useful if you have disabled startup messages and don't want the cursor character at the top of the screen!
  229. # call Fn.70 0 ;; clear
  230. # If you want to get rid of any earlier screen text use clear
  231. # clear
  232.  
  233. # Examples (use ONE of the following lines by removing the ### characters)
  234. # Use this line for a blank screen startup with no progress messages. Tip: use patchme to prevent early grub4dos messages (see \_ISO\docs\PatchMe_ReadMe.txt)
  235. ###call Fn.70 0 ;; clear ;; call Fn.5 0 128 ;; set redirp=> nul ;; set redir=> nul
  236.  
  237. # Use this line to display the background image as early as possible
  238. ###call Fn.70 3 ;; set redir=> nul 
  239.  
  240. # Use this line to display the background image as early as possible with no startup messages except an initial quick 'Please wait...' message
  241. ###call Fn.70 3 ;; set redir=> nul ;; set redirp=> nul ;; debug -1 ;; pause --wait=1 Please wait... ;; debug 0
  242.  
  243.  
  244. # ---- E2B STARTUP AND OTHER MESSAGES ----
  245. # SUPPRESS STARTUP FILE ENUMERATION INFORMATIONAL MESSAGES from AUTOMN.g4b, etc.
  246. ###set redir=> nul
  247.  
  248. # SUPPRESS OTHER (important) E2B MENU.LST PROGRESS MESSAGES (NOT recommended!)
  249. ###set redirp=> nul
  250.  
  251. # Note: redir and redirp may affect the messages displayed when a .imgPTN file is selected. Read more at https://easy2boot.com/configuring-e2b/mye2b-cfg/
  252.  
  253. # Display ASCII Easy2Boot text for 1 second (see http://www.askapache.com/online-tools/figlet-ascii/ or http://www.ascii-art-generator.org/ - use 99 as width)
  254. ###graphicsmode -1 800 > nul ;; cat /%grub%/ASCII_E2B.txt && pause --wait=1 > nul
  255.  
  256. # ---- MENU NUMBERING ----
  257. # E.g. The user can type '23' to select item 23 in the menu and so it is useful to have the menu item numbers displayed on the menu.
  258. # Auto-numbering is enabled by default (AUTONUM=0x2001).  AUTONUM=CCMM where CC is the marker/arrow character (byte) and MM is 00 (off), 01 (number bootable entries) or 02 (number all entries) 
  259. # Use AUTONUM=0x2000 to turn auto-numbering off, 0x2001 sets numbering on with a space after number (default), 0x2d01 autonumber with hyphen after number, 0x1a01 arrow, 0x3a01 colon, 0x0701 dot
  260. # e.g. 0x2d00=►menutext, 0x2d01=►nn-menutext  (where nn=two-characters for menu numbering 0-9/10-99)
  261. # Turn off auto-numbering
  262. ###set AUTONUM=0x2000
  263.  
  264. # Turn off the arrow menu pointer (safer than using write 0x8308 0) (E2B v1.A0+) setmenu --triangle-off requires grub4dos 0.4.6a 2018-07 or later
  265. ### setmenu --triangle-off ||  write 0x8308 0 > nul
  266.  
  267. # --- ADVANCED MENU CONFIGURATION ----
  268.  
  269. # set a short bar for background of highlighted menu entry (E2B v1.A0+) requires grub4dos 0.4.6a 2018-07 or later
  270. ###set SHORT_HL=1
  271.  
  272. # centre the menu entries inside the menu area (and centre help text under menu) - requires grub4dos 0.4.6a 2018-07 or later
  273. ###setmenu --middle-align
  274.  
  275. # sets the Default menu entry that will be highlighted when the WINDOWS INSTALL MENU is displayed
  276. ###set  DEFM_WIN=1
  277.  
  278. # If DEFMENU=0 then the '0 Set default menu entry and timeout' menu item in the Main menu will not be listed
  279. ###set DEFMENU=0
  280.  
  281. # WINCOUNT variable will cause all the \_ISO\Windows ISOs to always be enumerated on a FASTLOAD boot
  282. ###set WINCOUNT=1
  283.  
  284. # If NOF7HD is set then the 'Boot from HDD0 F7' menu entry is suppressed in all menus
  285. ###set NOF7HD=1
  286.  
  287. # If the NOF8B is set then the Windows menu will not display 'F8 Back to Main Menu' 
  288. ###set NOF8B=1
  289.  
  290. # if NOF8MAIN is set then no F8 Main menu entry will be available
  291. ###set NOF8MAIN=1
  292.  
  293. # If NOF9R is set then the 'F9 Reboot menu' item will not be listed in any menu (remember to change HELPTEXT too)
  294. ###set NOF9R=1
  295.  
  296. # If NOF10H is set then the 'F10 Power Off/Halt' menu item will not be listed in any menu (remember to change HELPTEXT too)
  297. ###set NOF10H=1
  298.  
  299. # Don't display the F1 HELP entry in the Main menu
  300. ###set NOF1=1
  301.  
  302. # NO FASTLOAD MENU - If you don't want the user to see the Main Menu entry to enable or disable FASTLOAD
  303. ###set NOFLDMNU=1
  304.  
  305. # NOWMENU causes a Windows Install sub-sub menu to return back to the Main menu rather than return to the Windows Install menu
  306. ###set NOWMENU=1
  307.  
  308. # NOWINMAIN cause the Windows Main Menu entry to be suppressed (even if there are \_ISO\WINDOWS\xxx\yyy.ISO files present
  309. ###set NOWINMAIN=1
  310.  
  311. # hstart = x position of menu help text (default = rstart-1), min = 1, 0=use menu width and menu start
  312. # hwidth = width of menu help text (default = menuw+2), 0=use whole width - 2 x hstart
  313. # Warning: Graphics corruption will occur if you exceed the width of the screen (hwidth+hstart
  314. ### set hwidth=70 && set hstart=6
  315.  
  316. # Write text to the menu (grub4dos 0.4.6a only) - --string=x=y=colour="text" - all commands are cached\remembered by grubdos until menu is re-loaded (max. 16 strings)
  317. # clear all previous strings
  318. ###setmenu --string=
  319. # write a string to grub4dos display cache buffer (max 16 commands allowed)
  320. ###setmenu --string=69=18=0xFF00FF="Hello"
  321.  
  322. # You can also draw lines and boxes - see easy2boot.com/configuring-e2b/draw-box/
  323.  
  324. # --- CHARACTER SET FONTS ----
  325.  
  326. # Font settings - specify alternate unifont hex file which is loaded after the E2B unifont file is loaded - many 16-pixel fonts are in /_ISO/docs/Fonts/ folder
  327. # Special non-ANSI characters are not included, so only suitable for English language really
  328. # if the filename contains ".f24" E2B will use large fonts without needing 'set FONTH=24' to be set
  329. ###set FONT=()/_ISO/docs/Fonts/terminus.uni.gz
  330.  
  331. # Use Default BIOS Font (tends to be thick+bold for standard ASCII characters)
  332. ###set BIOSFONT=1
  333.  
  334. # Do not load unifont fonts - if NOUNIFONT=1 then the standard E2B unifont font file is not loaded (to save time) but only ANSII characters will be displayed
  335. ### set NOUNIFONT=1
  336.  
  337. # LARGE FONTS - FONTH specifies the font height - only valuies of 16 or 24 are allowed (default = 16 = full unifont character set)
  338. # If you set FONTH=24 E2B will use a *limited* default set of 24-pixel high fonts (grub4dos 0.4.6a only)
  339. ###set FONTH=24
  340. # If you set FONT24 to the path of a 24-pixel font, E2B will use that font as the default font
  341. # Remember to set HBTM correctly to prevent the screen from scrolling!
  342. ###set HBTM=2300
  343.  
  344. # You can also load your own font after the default fonts have been loaded by using the FONT parameter - if FONTH=24 then the hex font file must be 24-high format 
  345. # If 24 pixel high: 1024x768=85 chars x 32 lines, 800x600=66x25 lines
  346. # 24 pixel high fonts: yxt.f24=trad Chinese, ltxxx.f24, terminal.f24, developer.f24, X11.f24 - some fonts may not work in some languages
  347. ###set FONT=/_ISO/docs/Fonts/developer.f24
  348.  
  349. # ----------- DISABLE AUTOMENU feature -----------------
  350. # E2B will allow you to press the first letter of a menu item to jump to it - grub4dos keys p, e, b and c keys will only work if SHIFT is held down
  351. # AUTOMENU = OFF will disable the AUTOMENU jump feature and special grub4dos p, e, b, c keys must be lower case (don't hold down SHIFT key)
  352. ###set AUTOMENU=OFF
  353.  
  354. # SET DEFAULT MAINMENU ITEM AND TIMEOUT
  355. # Information: Create an \_ISO\menu_defaults.txt file
  356. # Set the default entry and timeout in the menu_defaults.txt file (debug 0 prevents menu item number at top right from being displayed) 
  357. # DO NOT UNCOMMENT THE LINES BELOW! They should not be set in this file!
  358. # e.g. use these 3 lines in the menu_defaults.txt file for the first menu item as default and 0 seconds timeout (-1) - remove the # signs
  359. #   default 0
  360. #   timeout -1
  361. #   debug 0
  362. # This will fix which initial main menu default entry will be highlighted and the timeout in seconds.
  363. # You must also set DEFMENU=0 to suppress the 'Set default menu entry and timeout' menu entry
  364.  
  365. # ---- GFX menu support ----
  366. #  If you really want to use a gfxmenu or @[email protected] or GFX-RIPPER then specify the 'message' file here - https://easy2boot.com/configuring-e2b/gfx-menu-support/
  367. #  There are many gfxmenu limitations (on error goes into text mode, no timeout or default option, number of ISOs cannot be displayed, etc. etc.)
  368. # Tip: grub4dos 0.4.6a and E2B now supports large fonts - see FONTH below
  369. # Place your gfxmenu file in the /_ISO folder. Change the GFX= line to match the name of your file (path is always relative to \_ISO)
  370. set GFX=
  371. ###set GFX=message
  372. ###set GFX=docs/Templates/GFXMenu/message
  373.  
  374. # ---- TEXT MODE (no fancy wallpaper and no unicode font used - quick to load) ---
  375. # NO GRAPHICS MODE OR WALLPAPER or GFXMenu
  376. # Text-mode menu (no wallpaper) - suppresses graphics mode (must use 'GFX=none') for 80x25 lines
  377. # Try these settings if using text mode - set HBTM=2301 set HCOLOUR=0104 set FCOLOUR=0104
  378. # and use these text colours - color normal=light-cyan/dark-gray   highlight=red/cyan  helptext=yellow/light-gray  standard=light-cyan/black border=red/black
  379. # See "\_ISO\docs\MyThemes\TextMinimal.cfg" for an example MyE2B.cfg file.
  380. ###set GFX=none
  381.  
  382. # ---- KEYBOARD TYPE -----
  383. #set which keyboard you are using (use one only!) - see the KBD_xxxx.g4b files in the grub folder if you want to modify the key mapping
  384. #Note: Passwords may not work properly if the keyboard scan code mapping is not correct! Default = US keyboard (set KBD=)
  385. ###set KBD=KBD_AZERTY.g4b
  386. ###set KBD=KBD_FRENCH.g4b
  387. ###set KBD=KBD_GERMAN.g4b
  388. ###set KBD=KBD_ITALIANO.g4b
  389. ###set KBD=KBD_JAPAN_106.g4b
  390. ###set KBD=KBD_QWERTY_UK.g4b
  391. ###set KBD=KBD_QWERTZ.g4b
  392. ###set KBD=KBD_SPANISH.g4b
  393.  
  394. # set the keyboard type now (optional)
  395. # the next line ensures the correct keyboard scan codes will be recognised if using a non-USA keyboard (not required unless asking for password later on in this cfg file)
  396. ###if not "%KBD%"=="" call /%grub%/%KBD% > nul
  397.  
  398. # ---- LANGUAGE SUPPORT ----
  399. # To change language from ENGlish, look for supported language folders in the \_ISO\e2b\grub\xxx folders
  400. # e.g Arabic. Uncomment first line below to right-align menu entries. RTL=1 means use menuw value - or set RTL=  - e.g. 'set RTL=58' to adjust position of menu headings
  401. # use RTL for RIGHT-TO-LEFT LANGUAGES only, GERMAN_ALT has different alignment of [hotkey] characters in menu
  402. ###if "%LANG%"=="" set LANG=ARABIC && set RTL=1 && set AUTONUM=0 && write 0x8308 0 > nul
  403. ###if "%LANG%"=="" set LANG=CZECH
  404. ###if "%LANG%"=="" set LANG=DUTCH
  405. ###if "%LANG%"=="" set LANG=ENG
  406. ###if "%LANG%"=="" set LANG=FRENCH
  407. ###if "%LANG%"=="" set LANG=GERMAN
  408. ###if "%LANG%"=="" set LANG=GERMAN_ALT
  409. ###if "%LANG%"=="" set LANG=GREEK
  410. ###if "%LANG%"=="" set LANG=ITALIAN
  411. ###if "%LANG%"=="" set LANG=POLISH
  412. ###if "%LANG%"=="" set LANG=PORTU_BRAZIL
  413. ###if "%LANG%"=="" set LANG=ROMANIAN
  414. ###if "%LANG%"=="" set LANG=RUSSIAN
  415. ###if "%LANG%"=="" set LANG=SIMP_CHINESE
  416. ###if "%LANG%"=="" set LANG=SPANISH
  417. ###if "%LANG%"=="" set LANG=SWEDISH
  418. ###if "%LANG%"=="" set LANG=TRAD_CHINESE
  419. ###if "%LANG%"=="" set LANG=UKRAINIAN
  420. ###if "%LANG%"=="" set LANG=VIETNAMESE
  421.  
  422. # User Language Selection example code - prompt user before Main Menu is displayed - see \_ISO\e2b\grub folders for all available languages
  423. # Uncomment all the following lines (remove ###) to ask user to choose a different language (edit as required)
  424. ###if not "%DONEMENU%"=="" goto :skplang
  425. ###echo CHOOSE A LANGUAGE
  426. ###echo
  427. ###echo C  = Chinese (Simplified)
  428. ###echo TC = Chinese (Traditional)
  429. ###echo E  = English
  430. ###echo G  = German
  431. ###echo S  = Spanish
  432. ###echo
  433. ###set /p ask=Which language : 
  434. ###if /i "%ask%"=="C" set LANG=SIMP_CHINESE
  435. ###if /i "%ask%"=="TC" set LANG=TRAD_CHINESE
  436. ###if /i "%ask%"=="G" set LANG=GERMAN
  437. ###if /i "%ask%"=="S" set LANG=SPANISH
  438. ###if /i "%ask%"=="E" set LANG=ENG
  439. ###:skplang
  440.  
  441. #  ----- SOUND ALARM IF SOMEONE BOOTS WITHOUT CAPS LOCK ON ------
  442. # Check for CAPS LOCK on boot - if not on then sound alarm and switch off system if user presses a key
  443. # get special keys - e.g. SHIFT, CTRL, etc. into n for use later
  444. ###set n=0
  445. ###/%grub%/bios int=0x16 eax=0x00000200 > (md)0x300+1
  446. ###cat --skip=12 --length=2 (md)0x300+1 | set /a n=0x > nul
  447. # bits in n = LShift=01, RShift=02, CTRL=04, ALT=08,SCROLL=0x10, NUM=0x20, CAPS=0x40, INS=0x80
  448. ###if exist n calc %n%&0x40 > nul || if not exist DONEMENU set n=xxx && beep --play=255 400 20 500 20 600 20 700 20 800 20 900 20 1000 20 1100 20 1200 20 1300 20 1400 20 1500 20 1600 20
  449. ###if "%n%"=="xxx" echo HALT! && halt
  450. ###set n=
  451.  
  452. #   ---- PASSWORD PROTECTION -----
  453. # E2B default menu edit password is easy2boot
  454. # The line below will set a password of 'easy2boot' to stop users editing the menus accidentally (encrypted)
  455. # You can use an encrypted md5 value or a plain text value (see easy2boot.com - Configure E2B - Protection and Security for md5 calculation details)
  456. # If you want to edit the menus, press p and then enter the password (or you can use an unencrypted password like this: 'set pwd=fred')
  457. # Does not work if using GFX Menu
  458. # Set encrypted password of easy2boot
  459. ###set pwd=--md5 $1$1$okAQ3AJUdhqf3TVrwKvJP1
  460. # OR set plain text password of fred
  461. ###set pwd=fred
  462.  
  463. # Any payload file extensions ending in "pwd", e.g. Ubuntu.isopwd, will ask for a password before they will run
  464. # If menupwd is defined, then that will be the required password for the payload file
  465. # If menupwd is not set then the pwd (E2B menu edit password) will be used (if set)
  466. # e.g. if file = Ubuntu14.1.isopwd or Win7Install.imgPTNpwd  and menupwd=fred then you must enter fred before the payload will run
  467. #      if both menupwd and pwd are not set, then no password will be prompted for
  468. # Can use md5 encrypted password or plain text...
  469. ### set menupwd=--md5 $1$fzr3$gtBm4hqXA1CohTSpMsuxG1
  470. ### set menupwd=fred
  471.  
  472. # --- MASTER PASSWORD ---
  473. # To prompt user for password or PIN code, we must set up graphics, etc. now
  474. # GMODE was already set in the lines above - run graphicsmode before splashimage
  475. ###graphicsmode -1 %GMODE% > nul
  476. # If you want to display a different background bitmap just for the Master password user input (see below), use these 3 lines below
  477. ###call Fn.70 3
  478. ###splashimage /_ISO/docs/Templates/Aliums/Aliums.bmp.gz > nul
  479. ###clear
  480. # for a better method of password input, see easy2boot.com/configuring-e2b/protection-and-security/
  481. # the next line changes the font immediately but can cause a delay whilst it loads - ensure in graphics mode
  482. ###font ()/%grub%/unifont.hex.gz
  483. # You should have already set the keyboard type previously (e.g. QWERTZ)
  484. :mpwd
  485. # If you want to set a Master password for Easy2Boot to prevent anyone from using it on first boot
  486. # (e.g. 'fred') uncomment and edit the lines below (you can use password --md5 xxxxxxxx format if you wish)
  487. ###if exist DONEMENU goto :pok
  488. ###clear && echo && echo ENTER E2B MASTER PASSWORD
  489. ###debug 0
  490. ###password fred && goto :pok
  491. ###echo && set /p:2 ask=WRONG PASSWORD!
  492. ###goto :mpwd
  493. :pok
  494. ###if not exist DONEMENU echo
  495.  
  496. # To reboot if the password is wrong, replace the line   goto :mpwd    with the grub4dos command     reboot
  497.  
  498. # This will cause the wallpaper background to be always loaded before displaying the Main Menu - only needed if you enable FASTLOAD *AND* use splashimage for Master password as above
  499. ###set DONEMENU=
  500.  
  501. # --- MONTHLY PIN CODE ---
  502. # The user must enter the "4 digit PIN code of the month"
  503. # Windows PIN CALCULATOR app is available on request
  504. # VARIABLES BELOW CAN AFFECT ACTIONS OF TP.g4b
  505. # SEED - 4 digits - this is your special SEED number - default is 1985
  506. # set number of allowed attempts - default is very large!
  507. #
  508. # SPECIAL OPTIONS: TESTPIN and PINRETURN
  509. # set TESTPIN as first user guess or else user will be prompted for PIN code - if pin code is wrong, user will be prompted again (unless ATTEMPTS=1)
  510. # if PINRETURN is set then call to TP.g4b will always return after n ATTEMPTS or on success. PINRETURN=OK if correct pin number was used.
  511. # Typical use: Uncomment only the 6 ### lines, set ATTEMPTS and SEED. E2B Version line can be altered for any special message you like. 
  512. # Do not uncomment ##SS# lines unless needed (see https://easy2boot.com/configuring-e2b/protection-and-security/)
  513. ###if not exist /%grub%/TP.g4b halt
  514. ###if exist DONEMENU goto :TPfin
  515. ###set SEED=1985
  516. ###set ATTEMPTS=3
  517. ##SS#set TESTPIN=8684
  518. ##SS#set PINRETURN=1
  519. ###echo E2B VERSION %VER% 
  520. ###call /%grub%/TP.g4b
  521. ##SS#if not "%PINRETURN%"=="OK" reboot
  522. ##SS#if "%PINRETURN%"=="OK" clear
  523. :TPfin
  524.  
  525. # --- ENCRYPT FILES ---
  526. #Tip: For even better security, use 7Zip to compress this MyE2B.cfg file to GZip format or use lzma.exe (See easy2boot.com - Configure E2B - Protection and Security)
  527. #     \_ISO\docs\E2B Utilities\LZMA has useful batch files to encrypt files
  528. #     You must keep the file name unchanged (e.g. MyE2B.cfg) and can also set it's file attribute to 'Hidden' and 'System' or set permissions if NTFS E2B drive used.
  529.  
  530. # ---- SET AN EXPIRY DATE - EXAMPLES -----
  531. # Change the 20160320 date below to alter the expiry date and change the message - you can use reboot instead of halt, Fn.73 3 waits for 3 seconds
  532. ###if 20160320
  533.  
  534. # Use this code to only allow use on weekdays
  535. ###call /%grub%/dow.g4b %@date:~0,4% %@date:~5,2% %@date:~8,2% 
  536. ###if "%dow%"=="0" echo It's Sunday! && call Fn.73 3 && halt
  537. ###if "%dow%"=="6" echo It's Saturday! && call Fn.73 3 && halt
  538. ###set dow=
  539.  
  540. # See http://www.rmprepusb.com/tutorials/grubutils#TOC-Another-Batch-file-example---use-checkdate.g4b-to-check-an-Expiry-Date
  541. # set 14 day expiry date from 28th March 2016
  542. ###call /_ISO/e2b/grub/checkdate.g4b 2016 03 28 14 SILENT
  543. ###if not "%CHECKDAT%"=="OK" echo E2B HAS EXPIRED! && call Fn.73 3 && halt
  544. ###set CHECKDAT=
  545.  
  546. # --- CLONE PROTECTION (lock to this drive only) ---
  547. # This code gets the exact size of the E2B USB drive to prevent it being copied and run from another USB drive.
  548. # get number of sectors using INT 13h AH=48 into memory at DS:SI+10h  - edx=80h is hard disk 0, 81h would be hard disk 1
  549. # Change number 12345678 to match the size returned by your drive. Change halt to reboot if desired. Delete pause line if not required.
  550. ###debug 1 ;; echo xxxxxxxxxxxxxxxxxxxxxxxxx > (md)0x300+1 ;; write 0x60000 0x42 > nul ;; write 0x60010 0 > nul
  551. ###/%grub%/bios int=0x13 eax=0x4800 edx=0x80 ds=0x6000 esi=0x0 > nul ;; read 0x60010 > nul ;; set /a END=%@retval%-1 > nul
  552. ###if not %END%==12345678 pause THIS DRIVE ENDS AT SECTOR %END%
  553. ###if not %END%==12345678 halt
  554. ###set END=
  555.  
  556.  
  557. # --- MENU ENTRY SPACING ---
  558.  
  559. # grub4dos 0.4.6a allows you to set the spacing between text characters and between lines on the menu, default = 0:0  (Font spacing : Line spacing]
  560. # note that altering the line spacing will mean you will need to adjust your menu size/position parameters and text postitions, etc.!
  561. ###setmenu --font-spacing=1:2 > nul
  562.  
  563. # ---- DEFINE GLOBAL HOTKEYS (for all menus) ------
  564.  
  565. # See https://easy2boot.com/configuring-e2b/global-hotkeys/
  566.  
  567. # Set global hotkey CTRL+R for FASTLOAD Refresh - only defined if /FASTLOAD.YES is present
  568. ###if exist (bd)/FASTLOAD.YES ()/%grub%/hotkey [Ctrl+R] "clear && echo REFRESH > /FASTLOAD.YES && configfile /%grub%/menu.lst" > nul
  569.  
  570. # Program hotkeys to work in ALL menus - no separate menu entry is required. Some examples shown below.
  571. # Add global hotkeys - examples only - use ;; or ;& or && to separate commands. 
  572. # Use @ to prevent commands displaying on screen when hotkey pressed - e.g. "@(bd)/%grub%/qrun.g4b force.isodefault  /_ISO/Linux/Ubuntu.iso ;; boot" > nul
  573. ###()/%grub%/hotkey [F9] "reboot" > nul
  574. ###()/%grub%/hotkey [F10] "halt" > nul
  575. ###()/%grub%/hotkey [Ctrl+F9] "clear && echo \nLoading Windows menu... && /%grub%/configX.g4b /%grub%/MenuWinInstall.lst" > nul
  576. ###()/%grub%/hotkey [ctrl+F7] "clear && echo $[0004] \n\nPress a key to reboot\n && pause && reboot" > nul
  577.  
  578. #Disable Ctrl+F8 hotkey
  579. ###()/%grub%/hotkey [Ctrl+F8]
  580.  
  581. # Set Ctrl+F8 hotkey to Reload E2B (if E2B menu not working)
  582. ####()/%grub%/hotkey [Ctrl+F8] "map --unhook ;; map --unmap=0:0xff > nul ;; root (bd)/ > nul ;; chainloader /grldr > nul ;; boot" > nul
  583.  
  584. # F11 boots to an ISO
  585. ###()/%grub%/hotkey [F11] "(bd)/%grub%/qrun.g4b force.isodefault  /_ISO/Linux/Ubuntu.iso ;; boot" > nul
  586.  
  587. # F8 will always reload Main Menu (quick)
  588. ###()/%grub%/hotkey [F8] "set MFOLDER=/_ISO/MAINMENU && configfile (md)0xa000+0xA0" > nul
  589. # or F8 will re-enumerate all files and load Main Menu
  590. ###()/%grub%/hotkey [F8] "configfile (bd)/%grub%/menu.lst" > nul
  591.  
  592. # F7 to boot from internal HDD
  593. ###()/%grub%/hotkey [F7] "map (hd0) (hd1) && map (hd1) (hd0) && map --hook && chainloader (hd0)+1 && rootnoverify (hd0) && boot" > nul
  594.  
  595. # Make the F1 key show the Help Menu from any menu (uncomment 3 lines below) - you can put your own help file in \_ISO\F1.cfg
  596. ###if exist /_ISO/F1.cfg   ()/%grub%/hotkey [F1] "configfile /_ISO/F1.cfg" > nul && goto :f1skp
  597. ###if exist /%grub%/%LANG%/F1.cfg ()/%grub%/hotkey [F1] "configfile /%grub%/%LANG%/F1.cfg" > nul && goto :f1skp
  598. ###if exist /%grub%/ENG/F1.cfg ()/%grub%/hotkey [F1] "configfile /%grub%/ENG/F1.cfg" > nul
  599. :f1skp
  600.  
  601. # Clear only one global hotkey setting (can be used in .mnu files or .hdr and .lst files)
  602. # e.g. clear F9 global hotkey
  603. ###()/%grub%/hotkey [F9] > nul
  604.  
  605. # Clear all global hotkeys and reload the hotkey program (only really useful in other menus - e.g. in $$$CONFIG\CONFIG.mnu files) 
  606. ###()/%grub%/hotkey -u > nul && ()/%grub%/hotkey -A > nul
  607.  
  608. #Load UTILITIES Menu using F6 key
  609. ###()/%grub%/hotkey [F6] "set MFOLDER=/_ISO/UTILITIES && set HDG=Utilities Menu && /%grub%/SubMenu.g4b" > nul
  610.  
  611.  
  612. # ---- HIDE PAYLOAD MENU ENTRIES -----
  613.  
  614. # To hide a menu entry, create a .txt file of same filename as ISO and use:   iftitle [if exist SECRET] here is title\nhere is help text
  615. # Then define Ctrl+F9 and Ctrl+F10 hotkeys (password is E2B)
  616. # Read more: https://easy2boot.com/configuring-e2b/hide-payloads/
  617. # Ctrl+F9 - Clear menu with wallpaper and prompt user for password in German language, switch to blue wallpaper if success
  618. ###()/%grub%/hotkey [Ctrl+F9] "call Fn.70 3 ;; clear && echo -e -n \nPasswort:\x20 && set SECRET= ;; call Fn.5 0 128 ;; password E2B > nul && set SECRET=1 && splashimage /_ISO/docs/Templates/blue/blue.bmp.gz ;; configfile (md)0x3000+0xA0" > nul
  619. # Ctrl+F10 - Reset pwd and background, reload menu
  620. ###()/%grub%/hotkey [Ctrl+F10] "set DONEMENU= ;; configfile /menu.lst" > nul
  621.  
  622. # ----   OTHER SETTINGS ----
  623. # XP ISO UNATTEND.TXT SUPPORT - if PICKAUTO is set then user will be asked to select \_ISO\WINDOWS\XP\*.AUTO files for Unattend.txt\Winnt.sif selection
  624. # see https://easy2boot.com/add-payload-files/windows-install-isos/unattended-installs/
  625. # .SIF file must have OemPreinstall=No or will get 'missing file' errors
  626. ###set PICKAUTO=YES
  627.  
  628. # Use if black screen on boot to XP Setup (some Dell systems with buggy BIOSes need this) - if 0 does not work, try 1-9  (default is -1)
  629. ###set E820=0
  630.  
  631. # ---- ZALMAN\IODD HDD ENCLOSURE -----
  632. # If file extension is .ISO, then ask user how to run it (e.g. run as if .ISOPE or .ISOWINVH, etc.)
  633. # Use if you have a Zalman Virtual CD USB HDD caddy you may want to keep all .iso files as .iso (tip: use a .txt file with a help entry to remind you which one works best!)
  634. ###set ISOASK=1
  635.  
  636. # --- MENU SORTING ---
  637. # Turn off alphabetical sorting of menu entries (speeds up enumeration of menus slightly - NOT recommended!) - note multiple wallpapers won't work if you set this!
  638. ###set NOSORT=1
  639.  
  640. # --- CHECK BIOS FOR 137GB BUG ---
  641. # Do not check the BIOS to see if it has the >137GB USB disk access bug (e.g. as found on some Asus EeePCs) Tip: try formatting the drive using RMPrepUSB first!
  642. # Useful to suppress warning when your E2B drive is >137GB but E2B is on the first partition which is
  643. ###set CHECKBIOS=
  644.  
  645. #  ----- REDUCE MEMORY USAGE -----
  646. # This disables the loading of batch file modules into memory for faster execution (so MOD=1 may slower - not recommended)
  647. # If too many files or variables cause grub4dos to crash then uncomment the next line
  648. ###set MOD=1
  649.  
  650. # Use HLT instruction to reduce CPU cycles whilst waiting for keypress (stops CPU from getting too hot)
  651. ### write --bytes=1 0x8205 0x20 > nul
  652.  
  653. # --- DEBUG MODE - 
  654. # Displays boot timings just before Main Menu is displayed - use for diagnosing/measuring slow boot times (can also press ! key during boot to show times)
  655. ###set SHOWTIME=1
  656. # Always pause after menu file enumeration - Note: instead of using ENUMWAIT, just press the SPACEBAR during file enumeration and it will pause before it displays the menu
  657. ###set ENUMWAIT=1
  658.  
  659. # --- PROMPT USER FOR FASTER BOOT ----
  660. # Add 3 lines below to prompt for faster boot option (for BIOSes with poorly-written and slow USB drivers) (will need to adjust menu size)
  661. ###set ask=
  662. ###if not exist DONEMENU set /p:3 ask=Speed up booting (no wallpaper or unifont not loaded) (Y/N) : 
  663. ###if not exist DONEMENU if /i "%ask%"=="Y" set NOUNIFONT=1 && set GFX=none && set noitems=16 && set tophelp=18 && set HBTM=2300
  664.  
  665. # --- STAMPS and ANIMATION ---
  666. # see easy2boot.com for more details
  667. # Specify stamps to overwrite the wallpaper. Format: set STAMPn=type=x=y (filespec), type: 0=normal, 0x80=transparent background
  668. ###set STAMP1=0x80=584=0   /_ISO/docs/Templates/Animate/easy2boot_stamp.bmp
  669. ###set STAMP2=0x80=680=160 /_ISO/docs/Templates/Animate/E2B.bmp
  670. ###set STAMP3=0x80=620=160 /_ISO/docs/Templates/Animate/LadyMorgana.bmp
  671. ###set STAMP4=0x80=580=380 /_ISO/e2b/grub/E2BPlate.bmp
  672.  
  673. # ANIMATE - displays a sequence - first file must end in 01.xxx (can be compressed bitmap using gzip or LZMA) - must use .bmp or .jpg as extension
  674. # trans=transparent, infinite=animate on menu or add 1-15 for number of cycles, disable playing menu type=0x0
  675. # 18 delay units = 1 second, x and y in pixels, last = last frame number in sequence 01.xxx-99.xxx or 001-255.xxx
  676. ###set trans=0x80 && set infinite=0x10
  677. # display sequence on menu (with transparent background)
  678. ###set /A type=%infinite% + %trans% > nul
  679. # play sequence 3 times immediately
  680. ###set /A type=%trans% + 3 > nul
  681. ###set delay=0x3
  682. ###set last=09
  683. ###set x=650
  684. ###set y=40
  685. # use (bd) for boot drive or (hd0,0), so that if root drive changes it continues to load from correct drive.
  686. ###set FILE=(fd3)/frame_0001.bmp
  687. ###set ANIMATE=%type%=%delay%=%last%=%x%=%y% %FILE%
  688. ###set trans= && set infinite= && set delay= && set type= && set last= && set y= && set x= && set FILE=
  689. # If using a floppy image, we must specify the location of the image
  690. # The floppy disk image is loaded into memory and so the animation is faster and does not constantly access the disk
  691. # ANIMFD3 is a floppy disk image file containing the files - it is mapped to fd3 by E2B
  692. ###set ANIMFD3=/_ISO/docs/Templates/Animate/E2B_GIF.ima
  693.  
  694. # remove the animation that is currently playing
  695. ###splashimage --animated=0
  696.  
  697. # ----- SOUND (BEEPS and TUNES) ------
  698.  
  699. # beep middle C 3 times with 1/5 second delays (Frequency in Hz   Duration in milliseconds), freq.=0 for delay. play=255 for infinite loop
  700. ###beep play=3 --nowait 262 200 0 200 
  701.  
  702. # call an E2B batch file to play tune each time main menu is loaded
  703. ###call /_ISO/docs/Tunes/Tetris_Loop.g4b
  704.  
  705. # call an E2B batch file (if F8 pressed to reload Main menu, do not play tune again)
  706. ###if not exist DONEMENU call /_ISO/docs/Tunes/Tetris_Loop.g4b
  707.  
  708. # ------ SET VARIABLES MYMEMMB and MYDISKGB ----------
  709.  
  710. # set B64 text and MYMEMMB for size of memory
  711. ###set /a M=*0x8298 & 0xffffffff>>10+1 > nul && set /a M1=*0x82c0>>10+1 > nul
  712. ###set /a M=%M% + %M1% > nul ;; set MYMEMMB=%M% ;; set M= ;; set M1=
  713.  
  714. # set GB4 variable if 4GB+ of memory present
  715. ###set /a M=*0x8298 & 0xffffffff>>10+1 > nul ;; set /a M1=*0x82c0>>10+1 > nul ;; set /a M=%M% + %M1% > nul ;; if %M%>=4096 set GB4=1 ;; set M= ;; set M1=
  716.  
  717. #get size of boot device in GB in MYDISKGB (allow for 2TB drives - max grub4dos +ve number is 0x7FFFFFFFFFFFFFFF 1TB)
  718. ###geometry (bd) > (md)0x333+1 ;; cat --locate=/512 --replace=\x00 (md)0x333+1 > nul ;; cat --locate=nt/Size= (md)0x333+1 > nul
  719. ###set /A a=%?%+8 > nul ;; cat --skip=%a% (md)0x333+1 | set a=
  720. ###set /a a=%a%>>2 > nul ;; set /a a=%a%/2048 > nul ;; set /a MYDISKGB=%a%/1024 > nul ;; set a= ;; set /a MYDISKGB=%MYDISKGB% nul ;; if "%MYDISKGB%"=="0" set MYDISKGB=1