home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1994 February
/
psl_9403.zip
/
psl_9403
/
DOS
/
UT_SYSTM
/
KEYSVR10.ZIP
/
MENU.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-11-05
|
3KB
|
105 lines
ECHO OFF
CLS
REM -- Test for access to all required files
IF NOT EXIST MANUAL.TXT GOTO :FAULT
IF NOT EXIST REGISTER.FRM GOTO :FAULT
IF NOT EXIST KEYSAVER.COM GOTO :FAULT
IF NOT EXIST D.TPL GOTO :FAULT
IF NOT EXIST 1.TPL GOTO :FAULT
IF NOT EXIST 2.TPL GOTO :FAULT
IF NOT EXIST CHOOSE.COM GOTO :FAULT
IF NOT EXIST MM_INT1.SDX GOTO :FAULT
IF NOT EXIST MM_INT2.SDX GOTO :FAULT
IF NOT EXIST MM_INT2.SDX GOTO :FAULT
IF NOT EXIST MM_UREG.SDX GOTO :FAULT
IF EXIST MM_DEMO.SDX GOTO :MAIN_MENU
:FAULT
CLS
ECHO ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ECHO + +
ECHO + The files included in your KEYSAVER package are required +
ECHO + to run MENU.BAT, but they were not found in the current +
ECHO + drive/directory and the batch cannot be run. +
ECHO + +
ECHO + Switch to the drive/directory with the KEYSAVER files, +
ECHO + and try again. +
ECHO + +
ECHO ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
GOTO :END
:MAIN_MENU
CLS
CHOOSE WELCOME TO KEYSAVER^{I}ntroduction^{P}rint Manual^{R}egistration^{D}emo, Installation, and Exit
IF ERRORLEVEL=4 GOTO :MM_INTRO
IF ERRORLEVEL=3 GOTO :MM_PRINT
IF ERRORLEVEL=2 GOTO :MM_REGISTER
IF ERRORLEVEL=1 GOTO :MM_DEMO
GOTO :MAIN_MENU
:MM_INTRO -- "Introduction" SELECTION
CLS
TYPE MM_INT1.SDX
PAUSE
CLS
TYPE MM_INT2.SDX
PAUSE
CLS
TYPE MM_INT3.SDX
PAUSE
GOTO :MAIN_MENU
:MM_PRINT -- "Print Manual" SELECTION
CLS
ECHO PRINTING MANUAL TEXT
COPY MANUAL.TXT PRN
GOTO :MAIN_MENU
:MM_REGISTER -- "Registration" SELECTION
CLS
TYPE MM_UREG.SDX
PAUSE
CHOOSE PRINT REGISTRATION FORM?^{Y}es^{N}o
IF ERRORLEVEL=2 GOTO :MM_REG_PNT
GOTO :MAIN_MENU
:MM_REG_PNT
CLS
ECHO PRINTING REGISTRATION FORM
COPY REGISTER.FRM PRN
GOTO :MAIN_MENU
:MM_DEMO -- "Install to Drive-C" SELECTION
CLS
TYPE MM_DEMO.SDX
CHOOSE {BWC}COPY KEYSAVER.COM C:\^{Y}es -- Continue with Installation & Demo^{N}o -- Exit to DOS
IF ERRORLEVEL=2 GOTO :MM_INS_KSV
CLS
GOTO :END
:MM_INS_KSV
CLS
ECHO Copying KEYSAVER to the root directory of Drive-C.
PROMPT $G
ECHO ON
COPY KEYSAVER.COM C:\
PAUSE
ECHO OFF
CLS
ECHO Loading the KEYSAVER TSR specifying a 5000 byte template buffer
ECHO and a trigger shift key combination of CTRL+ALT.
KEYSAVER 5000 CTRL+ALT
ECHO +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ECHO + +
ECHO + Trigger KEYSAVER (press CTRL+ALT momentarily) and +
ECHO + then strike the "D" key to select the Demo Template. +
ECHO + +
ECHO +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ECHO +
ECHO +
ECHO +
ECHO +
:END
PROMPT $P$G