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 |
|
||||||
From | To | Subject | Date/Time | |||
Kirk Lawrence | BBQ Man | Menuing A BATCH File |
September 3, 1995 9:24 AM * |
|||
BBQM> Could someone please explain to me how make a batch file give me BBQM> choices of things to do, and then make them run as I choose them? BBQM> In example... BBQM> echo Select One: A B C BBQM> if A goto AA BBQM> if B goto BB BBQM> if C goto CC ... BBQM> I know this can be done. Can someone show me how please? You could do it in raw DOS using the PAUSE command, and then test for ERRORLEVEL. However, a more elegant solution would be to use the external utility REPLY.COM (included below) to pause the action...and then test the ERRORLEVEL. echo M E N U echo ~~~~~~~ echo. echo 1. This echo 2. That echo 3. Other :STOPHERE reply if errorlevel 52 goto stophere if errorlevel 51 goto three if errorlevel 50 goto two if errorlevel 49 goto one if errorlevel 0 goto stophere :THREE (do whatever) :TWO (do whatever) :ONE (do whatever) ---------------------------------- snip ------------------------------ section 1 of uuencode 5.25 of file reply.com by R.E.M. begin 644 reply.com .M`C-(3P`=0+-(;1,S2%, ` end sum -r/size 48377/48 section (from "begin" to "end" sum -r/size 45242/14 entire input file ---------------------------------- snip ----------------------------- ��������������������������� SUN COUNTRY BBS ��������������������������������ķ �--VirtualBBS 7.0 --(208) 773-2057---24 HOURS--VNET @1208O1O---DrumNET @ 1 --� ��������������������������� POST FALLS, ID. ��������������������������������Ľ |
||||||
|
Previous Message | Next Message | Back to BAT Magic <-- <--- | Return to Home Page |
Execution Time: 0.0139 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. |