Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
As stated in the subject, I have a question about configuring a Windows 98 Boot Disk's Menus. I have edited just about everything, and am successful in making a bootable dvd that will start Ghost and do various things such as restore the image files located on the DVD. It also has the ability to "wipe" drives. All this is automated. Right now, I have edited the Config.sys and the Autoexec to give me the initial menu options I want. This Menu is done using the same method the MS guys did:
config.sys calls:
menuitem=WIPE, Bla Bla Bla
[WIPE]autoexec.bat calls:
GOTO %CONFIG% (wipe in this case)
:WIPE
Whatever actions you want here.
GOTO END---
What I want to do, is once within WIPE...I would like to have a subsequent menu that says..."With What utility would you like to wipe the disk?"
Here I have been trying to use CHOICE within autoexec.bat:
CHOICE /C:DGX
IF ERRORLEVEL 1 CALL first.BAT
IF ERRORLEVEL 2 CALL second.BAT
IF ERRORLEVEL 3 CALL third.BATHere I call the appropriate bat file with all the actions and switces I need. Problem is, it always defaults to the first errorlevel no matter what is selected. Yes I had to add CHOICE.COM from a windows 98 machine to the boot disk. Also, I think the problem is, this bootdisk doesn't recognize what an ERRORLEVEL is. Any ideas how to do menus within menus??? Thanks a ton, I have been fighting with this one for a while.
Hippie Joe

Yea..Never Mind Thanks To This Nice Feature Called SubMenus:
http://users.cybercity.dk/~bse26236/batutil/help/SUBMENUE.HTM
Hope I Didn't Waste Your Time, Thanks Again.
Hippie Joe

That's all part & parcel of the multiconfig feature introduced in DOS6. Options are explained in the invaluable DOS Help program available on the Win95 (98 too?) CD as well as online
A bad cause seldom fails to betray itself

"Options are explained in the invaluable DOS Help program available on the Win95 (98 too?)"
98: \98SE\tools\oldmsdos\help.com

Thanks Dan - no way to check, but I thought it would be on there as well.
for 95 it's in the \other\oldmsdos folder (you need the qbasic too, also found there)
Online (Olddos.exe) & more stuff
A bad cause seldom fails to betray itself

Yeah,
In the case the submenu approach is probably what's needed.
But for reference. an errorlevel test evaluates true if the errorlevel is equal OR MORE.
So you need to 'work down', like this:
if errorlevel 3
if errorlevel 2
if errorlevel 1
...M2

Yes indeed - a common error (missed that)
Of course 'choice' is covered in DOS Help as well ; )
A bad cause seldom fails to betray itself

Thanks a ton everyone...all great information, and have now come to the point where CHOICE will be perfect. Thanks again!!!
HippieJoe

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |