Lan-Di

Distinguished
Jun 17, 2009
2
0
18,510
Hi,

I've been trying to get some DOS menu's working to make some things at my work easyier. But i can't get them to work proper. The problems started when i wanted to open a second menu (bat) with the first menu.

I found some old threads here on Tom's Hardware from somewhere in 2002 but those aren't solutions to my problem. Here's my 2 menu's so far:

Using CHOICE.COM
Starting menu (also tried with 'goto menu' under each CALL):

echo Boot Menu
echo.
echo.
echo 1 Flash BIOS
echo 2 DMI Folder
echo 3 Hirens Toolz
echo 4 Quit
echo.

:choice
CHOICE /C:1234 /N
if errorlevel 4 goto quit
if errorlevel 3 goto hrtlz
if errorlevel 2 goto dmi
if errorlevel 1 goto flash
goto choice

:flash
CALL C:\toolz\bootmenu\batch\flash.bat

:dmi
CALL C:\toolz\bootmenu\batch\dmi.bat

:hrtlz
CALL C:\toolz\bootmenu\batch\hrmenu.bat

:quit
exit
:end


*****And the second menu (hrtlz from the first menu):

echo Boot Menu
echo.
echo.
echo 1 Start HD Sentinel 0.04
echo 2 Start Memtest 2.11
echo 3 Quit
echo.

:choice
CHOICE /C:123 /N
if errorlevel 3 goto quit
if errorlevel 2 goto mem
if errorlevel 1 goto hds
goto choice

:hds
CALL C:\Toolz\Bootmenu\APPZ\hdsdos.exe
goto menu

:mem
CALL C:\Toolz\Bootmenu\APPZ\mt211.exe
goto menu

:quit
exit
:end
 

Lan-Di

Distinguished
Jun 17, 2009
2
0
18,510
Forgot to tell the problem ;)

****So the problem is, whenever i start using menu 1, somehow it starts opening one of the hirens tools or something from the second menu.

Thanks,