AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page
   Local Database  BAT Magic   [100 / 250] RSS
 From   To   Subject   Date/Time 
Message   Kirk Lawrence    BBQ Man   Menuing A BATCH File   September 11, 1995
 3:26 AM *  

BBQM> Great.  That works pretty well.  I'll have to read up in the
BBQM> DOS book to find out more about errorlevels though.

Yes...reading the DOS manual would =definitely= be a help! :)

BBQM> I made the batch file, using three choices and your reply.com file.
BBQM> It works, except for being able to quit without choosing a menu item.
BBQM> I have to press CTRL BREAK to get out of it.

That's easy.  Just add a "Quit" choice to the menu, and have it jump
to a routine which does nothing but exit the batch file...like this:

------------------------------ snip --------------------------------

echo off
cls
echo     M E N U
echo     ~~~~~~~
echo.
echo     1. This
echo     2. That
echo     3. Other
echo     4. Quit
echo.
:STOPHERE
reply
if errorlevel 53 goto stophere
if errorlevel 52 goto quit
if errorlevel 51 goto three
if errorlevel 50 goto two
if errorlevel 49 goto one
if errorlevel 0 goto stophere
:THREE
echo You pressed 3.
goto quit
:TWO
echo You pressed 2.
goto quit
:ONE
echo You pressed 1.
:QUIT

----------------------------------- snip ------------------------------

BBQM> I appreciate your help and your reply.com file.  I'm on my way...

Have fun, and good luck!

��������������������������� SUN COUNTRY BBS ��������������������������������ķ
�--VirtualBBS 7.0 --(208) 773-2057---24 HOURS--VNET @1208O1O---DrumNET @ 1 --�
��������������������������� POST FALLS, ID. ��������������������������������Ľ
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0153 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108