home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
DATABASE
/
DBAT110.ZIP
/
MENU4.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-01-10
|
3KB
|
133 lines
@echo off
:: *** dBAT Menu Demo #4 *** :: Turn off the echo (use @ if DOS3.3 or +)
:START
::c:
::cd \
:: Note: Must pass full path to dBAT if running the batch file from another
:: ie. directory dBAT doesn't search the PATH for the batch file
cls
DBAT %0
goto ENDdBAT
PROCEDURE dBAT
SET COLOR TO 31
@ 01,09 TO 15,69 DOUBLE
@ 02,10 CLEAR TO 14,68
SET COLOR TO 30
@ 02,30 ?? "=> dBAT Demo Menu <="
SET COLOR TO 31
@ 03,09 ?? "╟───────────────────────────────────────────────────────────╢"
@ 05,30 ?? "1. General Ledger"
@ 06,30 ?? "2. Payroll"
@ 07,30 ?? "3. Lotus 123"
@ 08,30 ?? "4. Professional Write"
@ 09,30 ?? "5. S/36 & PC Support Menu"
@ 11,30 ?? "9. Exit Menu to DOS"
@ 13,09 ?? "╟───────────────────────────────────────────────────────────╢"
SET COLOR TO 158
@ 14,12 ?? "Press"
SET COLOR TO 31
@ 14,18 ?? "number to select option . . ."
@ 17,00
QUIT
:ENDdBAT
:RETRY
:: ... !!! use any DOS menu scheme here !!! ...
:: *** Note: ASK3.ZIP is available on all ClipCode supported BBS (see .DOC) ***
ASK/efq "" abcdefghijklmnopqrstuvwxyz123456789\27
if errorlevel 36 goto EXIT Rem Esc
if errorlevel 35 goto EXIT Rem 9
if errorlevel 34 goto retry Rem 8
if errorlevel 33 goto retry Rem 7
if errorlevel 32 goto retry Rem 6
if errorlevel 31 goto PCS Rem 5
if errorlevel 30 goto PW Rem 4
if errorlevel 29 goto LOTUS Rem 3
if errorlevel 28 goto PR Rem 2
if errorlevel 27 goto GL Rem 1
if errorlevel 26 goto retry Rem Z
if errorlevel 25 goto retry Rem Y
if errorlevel 24 goto retry Rem X
if errorlevel 23 goto retry Rem W
if errorlevel 22 goto retry Rem V
if errorlevel 21 goto retry Rem U
if errorlevel 20 goto retry Rem T
if errorlevel 19 goto retry Rem S
if errorlevel 18 goto retry Rem R
if errorlevel 17 goto retry Rem Q
if errorlevel 16 goto PARK Rem P
if errorlevel 15 goto retry Rem O
if errorlevel 14 goto retry Rem N
if errorlevel 13 goto retry Rem M
if errorlevel 12 goto retry Rem L
if errorlevel 11 goto retry Rem K
if errorlevel 10 goto retry Rem J
if errorlevel 9 goto retry Rem I
if errorlevel 9 goto retry Rem H
if errorlevel 7 goto retry Rem G
if errorlevel 6 goto retry Rem F
if errorlevel 5 goto retry Rem E
if errorlevel 4 goto retry Rem D
if errorlevel 3 goto retry Rem C
if errorlevel 2 goto retry Rem B
if errorlevel 1 goto retry Rem A
if errorlevel 0 goto retry
goto EXIT
:GL
:: c:
:: cd \gl
:: GL...
echo !!! You selected General Ledger !!!
pause
:: cd \
goto START
:PR
:: c:
:: cd \PR
:: PR...
echo !!! You selected Payroll !!!
pause
:: cd \
goto START
:LOTUS
:: c:
echo !!! You selected Lotus 123 !!!
pause
:: cd \123
:: 123
:: cd \
goto START
:PW
:: c:
:: cd \PW
:: PW
echo !!! You selected Professional Write !!!
pause
:: cd \
goto START
:PCS
:: c:
:: cd \PCS
:: Note: only a batch file menu system can load a TSR from the menu
:: Note: must use CALL when running a batch file to return control to here
:: call LINK36
echo !!! You selected PC Support !!!
pause
:: cd \
goto START
:PARK
cls
PARK
goto END
:EXIT
cls
:END