Computing.Net > Forums > Disk Operating System > DOS Menus Question...Not Like Below

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS Menus Question...Not Like Below

Reply to Message Icon

Name: hippiejoeland (by HippieJoeLand)
Date: February 25, 2005 at 19:07:20 Pacific
OS: Win98 Boot Disk
CPU/Ram: Varies
Comment:

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.BAT

Here 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



Sponsored Link
Ads by Google

Response Number 1
Name: hippiejoeland (by HippieJoeLand)
Date: February 25, 2005 at 19:38:16 Pacific
Reply:

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


0

Response Number 2
Name: jboy
Date: February 25, 2005 at 20:01:10 Pacific
Reply:

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


0

Response Number 3
Name: Dan Penny
Date: February 25, 2005 at 20:12:01 Pacific
Reply:

"Options are explained in the invaluable DOS Help program available on the Win95 (98 too?)"

98: \98SE\tools\oldmsdos\help.com


0

Response Number 4
Name: jboy
Date: February 25, 2005 at 20:26:47 Pacific
Reply:

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


0

Response Number 5
Name: Mechanix2Go
Date: February 25, 2005 at 21:55:56 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: jboy
Date: February 25, 2005 at 22:05:42 Pacific
Reply:

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


0

Response Number 7
Name: hippiejoeland (by HippieJoeLand)
Date: February 28, 2005 at 10:47:06 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS Menus Question...Not Like Below

Visual Basic for DOS question. www.computing.net/answers/dos/visual-basic-for-dos-question/6713.html

DOS HDD Question www.computing.net/answers/dos/dos-hdd-question/15652.html

Dos Disk will not boot www.computing.net/answers/dos/dos-disk-will-not-boot/842.html