AutoMenu.bat: simple multi-level menu system (with a coherent help on Windows-DOS commands)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
bitwise
Posts: 2
Joined: 20 Oct 2024 12:20

Re: AutoMenu.bat: simple multi-level menu system (with a coherent help on Windows-DOS commands)

#16 Post by bitwise » 21 Oct 2024 17:42

This is great! Thanks for making my ask work!

Brings back a lot of memories from the old Tandy 1000 pre-windows batch menu that I used. If I remember correctly that menu had a windows (boxy) look using the ascii borders.
Like these https://en.wikipedia.org/wiki/Box-drawing_characters

miskox
Posts: 626
Joined: 28 Jun 2010 03:46

Re: AutoMenu.bat: simple multi-level menu system (with a coherent help on Windows-DOS commands)

#17 Post by miskox » 22 Oct 2024 03:24

In original version 1.4 change these lines (first and last are the same - just to be sure) (lines starting at line 131):

Code: Select all

set "choice=!choices:~%errorlevel%,1!"
if not "%choice%"=="0" if not "%choice%"=="%LetterToExitMainMenu%" choice.exe /N /C YQ /M "Press Y to continue or Q to Quit: "
if not "%errorlevel%"=="1" exit /B
if not "%level%"=="0" if "%choice%"=="0"                      exit /B
if     "%level%"=="0" if "%choice%"=="%LetterToExitMainMenu%" exit /B
set "option=!option[%choice%]!"
This code uses CHOICE.EXE instead of SET /P. Press 'Y' to continue or 'Q' to quit (return to previous menu).

Saso

Post Reply