Boot Menu in UEFI system
Posted: Tue Dec 12, 2017 12:53 am
I have multiple bootable partitions on HD1 (a GPT disk) which can be booted with this menu. See screenshot at the bottom of this post. Win10 is on HD0.
Menu.cmd is...
@echo off
CD /d F:\_AUTOrestoreUEFI\Boot_items
cls
echo.
echo Please Select From The Options Below:
echo.
echo 1. Boot Active @
echo 2. Boot EasyUEFI
echo 3. Boot IFL
echo 4. Boot Mint Cinnamon
echo 5. Boot PartWork
echo 6. Boot PESE
echo 7. Boot TBOSDT UEFI
echo 8. Boot TBWinPE
echo 9. Boot TBWinRE
echo A. Boot Windows Boot Manager
echo B. Exit
echo.
choice.exe /c 123456789ab /m "Your choice "
echo.
if errorlevel 11 goto Exit
if errorlevel 10 goto WBM
if errorlevel 9 goto TBWinRE
if errorlevel 8 goto TBWinPE
if errorlevel 7 goto TBOSDT
if errorlevel 6 goto PESE
if errorlevel 5 goto PartWork
if errorlevel 4 goto Mint
if errorlevel 3 goto IFL
if errorlevel 2 goto EasyUEFI
if errorlevel 1 goto Active
:Active
echo This is Active @
echo.
active.cmd
:EasyUEFI
echo This is EasyUEFI
echo.
EasyUEFI.cmd
:IFL
echo This is IFL
echo.
ifl.cmd
:Mint
echo This is Mint Cinnamon
echo.
mint.cmd
:PartWork
echo This is PartWork
echo.
partwork.cmd
:PESE
echo This is PESE
echo.
PESE.cmd
:TBOSDT
echo This is TBOSDT UEFI
echo.
tbosdt.cmd
:TBWinPE
echo This is TBWinPE
echo.
tbwinpe.cmd
:TBWinRE
echo This is TBWinRE
echo.
tbwinre.cmd
:WBM
echo This is Windows Boot Manager
echo.
wbm.cmd
:Exit
echo This is Exit
echo.
goto exitbatch
:exitbatch
tbwinpe.cmd is...
@echo off
CD /d %~dp0
set TBOSDT=C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win
"%TBOSDT%\tbosdtw.exe" tbwinpe.run
echo.
shutdown -r -t 0
tbwinpe.run is...
set uefi bootnext 0x0008
The remaining scripts are variants of the above two scripts.
.
Menu.cmd is...
@echo off
CD /d F:\_AUTOrestoreUEFI\Boot_items
cls
echo.
echo Please Select From The Options Below:
echo.
echo 1. Boot Active @
echo 2. Boot EasyUEFI
echo 3. Boot IFL
echo 4. Boot Mint Cinnamon
echo 5. Boot PartWork
echo 6. Boot PESE
echo 7. Boot TBOSDT UEFI
echo 8. Boot TBWinPE
echo 9. Boot TBWinRE
echo A. Boot Windows Boot Manager
echo B. Exit
echo.
choice.exe /c 123456789ab /m "Your choice "
echo.
if errorlevel 11 goto Exit
if errorlevel 10 goto WBM
if errorlevel 9 goto TBWinRE
if errorlevel 8 goto TBWinPE
if errorlevel 7 goto TBOSDT
if errorlevel 6 goto PESE
if errorlevel 5 goto PartWork
if errorlevel 4 goto Mint
if errorlevel 3 goto IFL
if errorlevel 2 goto EasyUEFI
if errorlevel 1 goto Active
:Active
echo This is Active @
echo.
active.cmd
:EasyUEFI
echo This is EasyUEFI
echo.
EasyUEFI.cmd
:IFL
echo This is IFL
echo.
ifl.cmd
:Mint
echo This is Mint Cinnamon
echo.
mint.cmd
:PartWork
echo This is PartWork
echo.
partwork.cmd
:PESE
echo This is PESE
echo.
PESE.cmd
:TBOSDT
echo This is TBOSDT UEFI
echo.
tbosdt.cmd
:TBWinPE
echo This is TBWinPE
echo.
tbwinpe.cmd
:TBWinRE
echo This is TBWinRE
echo.
tbwinre.cmd
:WBM
echo This is Windows Boot Manager
echo.
wbm.cmd
:Exit
echo This is Exit
echo.
goto exitbatch
:exitbatch
tbwinpe.cmd is...
@echo off
CD /d %~dp0
set TBOSDT=C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win
"%TBOSDT%\tbosdtw.exe" tbwinpe.run
echo.
shutdown -r -t 0
tbwinpe.run is...
set uefi bootnext 0x0008
The remaining scripts are variants of the above two scripts.
.