Unsolved
This post is more than 5 years old
40 Posts
0
8589
May 9th, 2004 07:00
Need small helps for tuning up an MS-DOS Boot menu
Hi all, I'm new to the operating system forum (normally I'm in Inspiron), since yesterday I started to create myself a DOS (Win98SE DOS) boot menu for frequent used floppy based applications (PM8, IBM DFT, IBM FT, Ghost 2003, Dell Diag, Qbasic, a few dos games, Core test and a few other Dos apps) on my Inspiron 8200's second hd.
Every applications work perfectly launched from the menu, I changed the color and added Ghost by default after 30 seconds.
I also have a sub menu for Games from the main menu.
But I have 3 things that I wasn't abble to add to the menu.
I would like to be abble to go back from a sub menu to the main menu ie:(if I need not to launch something here and was just looking I select return to main and I resee the main menu again to do a choice)
I don't know the commmand to jump from a submenu to the main...
I tryed a menuitem=menu, Go back to main menu (main menu been called menu) but it doesn't work ... Any idea ?
My other problem is that I would like to be abble to recall the main menu instead of the c: prompt once I exit an application launched from the menu ie, (when ghost exit, I return to the menu to do another choice, instead of the c: prompt), I also would like to know a command I can type from the c: prompt to reopen the menu ready for a second application choice...
Lets me know, if somebody else need my code (config.sys, autoexec.bat) feel free to ask !
Please help me soon as I want to complete the menu and ghost my project soon !
0 events found


chuket
1.4K Posts
0
May 10th, 2004 04:00
If you want to run a batch file to perform a task, this is a sample that
I wrote for my own use. It uses the choice command. You can adjust it for your own needs. Copy all the bold faced text and paste it to notepad. Then save as FileExt.bat.
::Rem Sends selected files to Notepad.
@echo off
:begin
cls
echo.
echo Please select a file extension to search for (1 to 8 ).
echo The 'C:\path\files.ext' will open in Notepad.
echo They will be listed in C:\path\file in alphabetical order.
echo They can then be printed out if needed.
echo.
echo Please key your selection using 1,2,3,etc
echo.
echo SELECT:
echo.
choice /n /c:12345678 1 .EXE, 2 .DLL, 3 .VXD, 4 .OCX, 5 .SYS, 6 .TXT, 7 .INI, 8 to Quit
echo.
if errorlevel 8 goto end
if not errorlevel 8 if errorlevel 7 goto ini
if not errorlevel 7 if errorlevel 6 goto txt
if not errorlevel 6 if errorlevel 5 goto sys
if not errorlevel 5 if errorlevel 4 goto ocx
if not errorlevel 4 if errorlevel 3 goto vxd
if not errorlevel 3 if errorlevel 2 goto dll
if not errorlevel 2 if errorlevel 1 goto exe
:ocx
set a=OCX
goto look
:vxd
set a=VXD
goto look
:dll
set a=DLL
goto look
:exe
set a=EXE
goto look
:sys
set a=SYS
goto look
:txt
set a=TXT
goto look
:ini
set a=INI
:look
cd C:\
cls
echo.
echo Searching for '%a%' files, please wait.....
dir /s /b c:\*.%a% | find /I "%a%" > %a%list.txt
cls
echo.
echo Opening %a%list.txt.....
start /max %a%list.txt
goto begin
:end
cls
Message Edited by chuket on 05-10-2004 01:34 AM
Message Edited by chuket on 05-18-2004 10:54 PM
Message Edited by chuket on 05-18-2004 10:55 PM
Kanekane
40 Posts
0
May 10th, 2004 04:00
Thanks you chuket for the reply, I saved down your example, but I can't really use this for my boot menu ar my menu need to be created in the config.sys, not only launching different dos tools, applications or games depending of my choice, but also loading their config.sys own parameter...
Here is my config.sys so you can understand my menu, I repeat, I need a way to return to the menu once I exit an application I just launched from the menu, and a way to navigate back to the main menu once in a sub menu (a menu can contian only 9 items)
I considered rebuilding using menu applications like easy menu, but as most of my application require different config.sys parameters, those applications, only work for command switch and things that can be selected in a batch file (in my case autoexec.bat) or at the prompt..
[menu]
submenu=JEUX, JEUX DOS
submenu=DOS, MS-DOS
menuitem=GHOST, D‚marrer Norton Ghost 2003
menuitem=PM8, D‚marrer Partition Magic 8
menuitem=DFT, D‚marrer Hitach-I-BM Drive Fitness 3.62
menuitem=IBMFT, D‚marrer Hitach-I-BM Feature Tool 1.94
menuitem=DELLDIAG, D‚marrer Dell Diagnostic 12.24
menuitem=CORETEST, D‚marrer CoreTEST Disk Performance Test Program 3.02
menuitem=QBASIC, D‚marrer QBASIC
menudefault=GHOST,30
menucolor=7,0
[DOS]
menuitem=CD, Invite MS-DOS avec suport CD-ROM Atapi
menuitem=NOCD, Invite MS-DOS sans suport CD-ROM Atapi
menuitem=VALET, D‚marrer le Shell PC-Valet Dos
menucolor=1,0
[JEUX]
menuitem=SUPAPLEX, D‚marrer Supaplex
menuitem=ROVER2, D‚marrer Rover 2
menuitem=menu, Retour au menu
rem menuitem=, D‚marrer
rem menuitem=, Afficher le fichier d'aide
menudefault=SUPAPLEX,30
menucolor=1,0
[CD]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:mscd001
files=10
buffers=10
dos=high,umb
stacks=9,256
rem devicehigh=ramdrive.sys /E 2048
lastdrive=z
device=display.sys con=(ega,,1)
country=002,850,country.sys
install=mode.com con cp prepare=((850) ega.cpi)
install=mode.com con cp select=850
install=keyb.com cf,,keybrd2.sys
[GHOST]
[CORETEST]
[SUPAPLEX]
[ROVER2]
[VALET]
[QBASIC]
[DELLDIAG]
dos=high,umb
devicehigh=c:\DELLDIAG\ibmtpcd.sys
[PM8]
DEVICE=c:\PM8\HIMEM.SYS
DOS=HIGH,UMB
LASTDRIVE=Z
REM DEVICEHIGH=DISPLAY.SYS CON=(EGA,yyy,)
[IBMFT]
FILES=30
COUNTRY=002,,C:\IBMFT\DOS\COUNTRY.SYS
[DFT]
SWITCHES=/F /N
DOS=HIGH,UMB
FILES=30
DEVICE=C:\IBMDFT\DOS\HIMEM.SYS
DEVICE=C:\IBMDFT\DOS\RAMDRIVE.SYS 4000 /E
COUNTRY=002,,C:\IBMDFT\DOS\COUNTRY.SYS
[NOCD]
device=himem.sys /testmem:off
files=10
buffers=10
dos=high,umb
stacks=9,256
rem devicehigh=ramdrive.sys /E 2048
lastdrive=z
device=display.sys con=(ega,,1)
country=002,850,country.sys
install=mode.com con cp prepare=((850) ega.cpi)
install=mode.com con cp select=850
install=keyb.com cf,,keybrd2.sys
[COMMON]
Yes I primary speak french !
If you know the 2 commands I'm looking for, or a way I can achieve my goal, at worst if nothing exist, a way I can recreate from scratch my menu, still controlling config.sys and having my problem solved, lets me know !
Also If you are interested in my project and find yourself swapping cd, zip, floppy and media bay drives frequently on your Inspiron, feel free to drop me a line for questions on my project, or to ask for my source (aotoexec, config.sys, msdos.sys, way to sys and arrange your floppy in the menu, tricks I used)
Kane