Category : Batch File Utilities - mostly for DOS
Archive   : BMENU54.ZIP
Filename : NESTED.BAT

 
Output of file : NESTED.BAT contained in archive : BMENU54.ZIP
echo off
echo.
echo Example with menu definition nested within the batch file
echo.
goto main

; Menu Def below

$menu1
5
40
Title
Choices
Choice 2
$end_menu

; Batch file below

:main
bmenu @nested.bat menu1
echo.
if errorlevel 2 goto 2
if errorlevel 1 goto 1
if errorlevel 0 goto esc
:2
echo Choice 2 was made
goto end
:1
echo Choices was selected
goto end
:esc
echo User hit ESC or ^C
:end


  3 Responses to “Category : Batch File Utilities - mostly for DOS
Archive   : BMENU54.ZIP
Filename : NESTED.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/