
Add a new Sub-Menu folder
E2B SUBMENU Maker.cmd
An easy way to add a new Main Menu entry for a new folder, is to use the \_ISO\E2B SUBMENU Maker.cmd file - just run this or drag-and-drop your new \_ISO\MSDART folder onto it, to make a Main menu entry for it.
You can edit the new file using NotePad afterwards (save as UTF-8 to preserve any special characters if using a non-English language).
Watch the YouTube video above or read the Blog for more details.
Note: If the new menu folder is completely empty, then there will be no menu entry for it in the Main menu - you must copy an ISO or .mnu file, etc. into the new sub-folder before the menu entry will be displayed.
ADMIN Menus (secret and password protected menu folders)
You can edit the .mnu file so that the sub-menu entry is only displayed under certain conditions.
For instance, if the SCROLL LOCK LED is on, then an ADMIN Menu entry will be displayed in the Main Menu.
1. Use the E2B SUBMENU Maker to make a \_ISO\ADMIN folder and a ZZSubMenu$ADMIN.mnu file as detailed above.
2. Edit the iftitle line in the new \_ISO\MAINMENU\xxxx .mnu file as shown below (the extra text to add is shown in red):
#Check 0x40 for CAPS LOCK on - use 0x20 for NUM-LOCK or 0x10 for SCROLL-LOCK, 0x08 for ALT, 0x04 for CTRL
iftitle [calc *0x417 & 0x10 > nul && ls (bd)/_ISO/ADMIN/ > (md)0x9F00+1 && checkrange 1:-1 read 0x13E0000 > nul] ^Alt+A ADMIN Menu [Alt+A]\nThis menu is only visible in Admin mode.
set MFOLDER=/_ISO/ADMIN
set HDG=Admin Menu
(bd)/%grub%/SubMenu.g4b
boot
This example will only display the Admin menu entry in the Main Menu when SCROLL-LOCK is on.
Whenever the Main Menu is loaded, the status of the keyboard will be checked.
You can change the 0x10 number to test for CAPS LOCK or NUM LOCK or the ALT or CTRL keys being held down. Note that some systems will turn on NUM LOCK when they boot.
0x02 for L-SHIFT, 0x01 for R-SHIFT can also be used, but you must not hold down the SHIFT key until just before the Main Menu starts to load, otherwise the grub4dos USB 2 driver will be loaded because E2B checks for the SHIFT keys at an early stage.
If using CTRL or ALT or SHIFT, you must press F8 first and then hold down the special key just before the Main Menu is loaded.
You can create more sub-menus in the same way if you wish, so that many extra menus will be visible in the MAIN MENU when the secret key is activated.
You can request a password before a sub-menu will be loaded by adding the line:
password fred || configfile (md)0xA000+0xA0
just below the iftitle line.
Change 'fred' to your own password or use %pwd% to use the E2B menu password.
Manually add a new sub-menu
IMPORTANT: Ensure that the 'set MFOLDER=.....' line does not end with a SPACE character as this may cause problems (e.g. loading wallpaper files, etc.)
Ensure you save it as UTF-8 encoded if you use non-ASCII characters (use NotePad- File - Save As...).
Add new 'AUTO' Payload folders
The folders do not have to be below /_ISO, but this example uses \_ISO\LinuxISO\Ubuntu and \_ISO\LinuxISO\Fedora to hold Ubuntu and Fedora payload files...
Enumerate only one folder
Add a sub-sub-me nu folder
The \_ISO\UTILITIES_MEMTEST folder is actually a sub-sub-menu folder for the Memory Test menu which can only be reached via the Utilities menu.
The \_ISO\UTILITIES\Utilities_MemTest.mnu file is used to add a menu item in the Utilities Menu which will take you to the UTILITIES_MEMTEST menu.
In the UTILITIES_MEMTEST folder there is a ZZBackTo_Utils.mnu file which will take you back to the Utilities Menu from the Memory Test menu.
New in v1.62:
An easy way to add a new Main Menu entry for a folder is to use the \_ISO\docs\E2B Utilities\Make SubMenu.cmd file - just run this or drag-and-drop your new \_ISO\MSDART folder onto it, to make a Main menu entry for it. See the Blog for more details.
Otherwise, do it the hard way and follow the steps below.
If you want your own sub-sub-menu, then you will need to create two similar files...
Example for Linux - Ubuntu sub-sub-menu
You want a new UBUNTU sub-sub-menu in the Linux Menu for Ubuntu ISOs
1. Use the \_ISO\docs\E2B Utilities\E2B SUBMENU Maker.cmd to create a LINUX_UBUNTU folder
Yoy can specify a hotkey (e.g. Ctrl+U) if you wish.
2. Move the file created in the \_ISO\MAINMENU folder (ZZSubMenu$LINUX_UBUNTU.mnu) to the \_ISO\LINUX folder
3. Copy your Ubuntu ISO files into the new, empty \_ISO\LINUX_UBUNTU folder
4. You can now test your menu, but you can only go back to the Main menu using F8.
To return to the LINUX menu from the LINUX_UBUNTU menu, add a new \_ISO\LINUX_UBUNTU\ZZReturn.mnu file:
title Return to Linux Menu\n Go back to the previous menu
set MFOLDER=/_ISO/LINUX
set HDG=Linux Menu
#HDG will be the heading for the menu
(bd)/%grub%/SubMenu.g4b
boot
You can define a hotkey too, by using a different title line, e.g.
title ^Ctrl+F9 Return to Linux Menu [Ctrl+F9]\n Go back to the previous menu
*Ctrl+F9 should now be used because Ctrl+F8 will now reload E2B in later versions!
To change the order of the menu entries, start the .mnu file name with either $ or ZZZZ as files are sorted alphabetically (the actual name of .mnu files does not matter).
You can edit the new .mnu files if you wish to change them (if you edit existing E2B .mnu files, they will be overwritten when you next update E2B!).
Multiple 'nested' menus
Password protect a sub-menu
See here for more details and a coloured text prompts, etc.
Recommended for Easy2Boot (fastest flash drive!)
SanDisk Extreme SDCZ880-128G-G46
- Home
- Start & Intro
- Quick Setup Guide >>>
- DOWNLOADS >>>
- YouTube videos
- Tutorials and How To's
-
Make a USB Drive >>>
- Make a multi-partition E2B USB drive using RMPrepUSB
- Use an existing USB HDD for E2B
- Use LINUX to make an E2B drive + defrag
- How to Update E2B
- How to make a WINHELPER USB Flash Drive (fix 'Required DVD drive driver is missing')
- Multiple partitions on a USB Flash drive
- Using other partitions or drives
- Backup/Restore/Copy (clone) any E2B USB drive
- Make and burn an E2B DVD
- Using E2B with a Zalman/IODD
- Add E2B to your own grub4dos USB drive
- How to remove E2B
- E2B Menu System
- UEFI booting from E2B
-
How to add Payload Files and Use E2B >>>
- Make files CONTIGUOUS
- File Extensions recognised by E2B
- UEFI+MBR and how to make .imgPTN files
- MakePartImage and how to change the CSM Menu
- UEFI-Multiboot and rEFInd
- Using SWITCH_E2B with .imgPTN files
- Using the \_ISO\AUTO folder
-
WINDOWS payloads >>
- E2B USB HDD - Installing Windows with a 'WinHelper' drive
- Windows XP Install ISOs
- Install XP 32-bit + disk drivers (DPMS)
- Windows XP 64-bit
- Install XP using WinPE (one step process)
- Add XP Install ISOs using WinSetupFromUSB
- Windows Vista/7 Install ISOs
- UEFI boot from Windows 7 Install ISOs
- Windows 8/10 Install ISOs
- Unattended Installs
- XMLtoE2B.exe (Unattend.XML files)
- Adding >4GB Windows Install ISOs using .imgPTN files
- Automating Windows Installs from .imgPTN files
- Split_WinISO
- Add Windows ISOs to partition 2
- Windows AIO ISOs
- WindowsToGo
- WinNTSetup
- WinLite10 XML files
- SDI_CHOCO (install drivers, apps and updates) >>
- .VHD and .WIM files
- PassPass (bypass the Windows Password)
- Hack Windows Account Passwords (UtilMan.exe)
- Windows 2000
- Windows 98
- Multipoint Server
- Add the latest XP drivers (DPMS)
- Add a Windows Install menu entry
- LINUX payloads >>
- MSDart ERD ISOs
- WinBuilder, Medicat, Gandalf and WinPE ISOs
- Hirens/Strelec/DLC/F4 ISOs
- DOS (MS-DOS and FreeDOS)
- HAIKU
- MAC OS X
- FreeBSD
- MOVE_IMGPTN
- List of tested ISOs\payloads (with instructions)
-
Configure E2B >>>
- Menu settings (quick reference)
- E2B Menu Demo
- E2B_Editor
- E2B files and folders explained
- MyE2B.cfg - E2B configuration file >>
- Change the payload menu entries and help text using a .txt file
- Change the order of the menu entries
- Change the background wallpaper
- Different background wallpaper for each menu
- Default Menu and Timeout
- Change the Language, Headings, Menu and text
- Changing the default E2B menu entry order
- 'Change File Extension' prompt (Auto-Suggest)
- Change the Keyboard Layout
- About .mnu files
- Sample .mnu files
- PimpMyDrive.cmd
- Reduce the E2B messages
- Add a new Sub-Menu folder
- Stamps, Animation and Tunes
- Draw lines and boxes on the screen
- Write text/time/date to the menu screen
- Global Hotkeys
- Themes (Skins)
- Fonts
- Speeding up E2B (inc. FASTLOAD)
- One Single Menu
- The E2B F1 Help menu
- Add your own Help Menu
- Add Help text files (.help)
- Add Windows Install ISOs to the Main Menu
- Change the Windows Install Menu
- Passwords and Security
- Hide Payloads and Menu Entries
- Guest Mode
- GFX Boot Menus
- Dual Booting
- Change the CSM .imgPTN Menu
- Configure Clover
- Right-to-Left Languages
- Create new language files
- How to modify LOADISO.CMD (Repair message)
- Count number of boots
- UEFI - useful things know!
-
FAQ, Info, TroubleShooting, QEMU and Virtual Machines >>>
- 'File Not Contiguous' and 'Too Many Fragments' Errors
- 137GB 'BAD BIOS' bug
- TroubleShooting E2B
- E2B Error Messages
- Grub4dos Error Numbers
- Common problems with payload files
- Repair a corrupt E2B drive
- Known Issues and Bugs
- Slow and buggy BIOSes
- How E2B Works
- QEMU and Virtual Machines >>
- Using VBOX with a WinHelper USB drive
- Debugging E2B
- CONTIG.ISO
- ISOBOOT
- WIMBOOT (iPXE)
- grub4dos
- Useful resources
- Removable v. Fixed
- Gallery
- Guestbook
- Forum
- Blog
- a1ive grub2 File Manager (MBR+UEFI)
- Add Ventoy
- Site Map
- eBooks
- Contact Me >>>
- Donate
- Licensing
- Privacy policy (GDPR)
- Bespoke design service
- Grub2 Menu System (UEFI_GRUB2_PTN2)