home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
w
/
wbtsr14k.zip
/
MENU.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-11-28
|
2KB
|
87 lines
echo off
:loop
if not exist WBTSMENU.COM goto wrong
WBTSMENU xx
if errorlevel 10 goto quit
if errorlevel 9 goto regis
if errorlevel 8 goto further
if errorlevel 7 goto runtsr
if errorlevel 6 goto wbp
if errorlevel 5 goto viewer
if errorlevel 4 goto filer2
if errorlevel 3 goto filer1
if errorlevel 2 goto skel
if errorlevel 1 goto intro
goto wrong
rem -----------------------
:regis
cls
chapter9 x
if errorlevel 1 goto quit
goto loop
rem -----------------------
:further
cls
chapter8 x
if errorlevel 1 goto quit
goto loop
rem -----------------------
:runtsr
cls
chapter7 x
if errorlevel 1 goto quit
goto loop
rem -----------------------
:wbp
cls
wbp x
if errorlevel 1 goto quit
goto loop
rem -----------------------
:viewer
cls
chapter5 x
if errorlevel 1 goto quit
goto loop
rem -----------------------
:filer2
cls
chapter4 x
if errorlevel 1 goto quit
goto loop
rem -----------------------
:filer1
cls
chapter3 x
if errorlevel 1 goto quit
goto loop
rem ----------------------- menu1
:skel
cls
chapter2 x
if errorlevel 1 goto quit
goto loop
rem -----------------------
:intro
cls
chapter1 x
if errorlevel 1 goto quit
goto loop
rem -----------------------
:wrong
echo *****************************************************************
echo **** The required file WBTSMENU.COM is not in this directory. ***
echo **** At this stage all the files distributed ***
echo **** with World Best TSR must be in the current directory. ***
echo **** You probably need to change to the directory where the ***
echo **** files are (See your DOS instruction manual for an ***
echo **** explanation of the CHDIR command.). Check that all the ***
echo **** files listed in the file PACKING.LST are present. ***
echo *****************************************************************
goto exit
rem -----------------------
:quit
cls
:exit
echo off