home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
d
/
demos301.zip
/
SAMPLES.ZIP
/
EXAM08.CTL
< prev
next >
Wrap
Text File
|
1993-01-09
|
1KB
|
46 lines
/* EXAM08.CTL
/* Creating a sample user menu
- (ONCE)
DELETE EXAM08X.BAT /* Killing off the temporary batch file
- *000 Main menu
KEY (UP) FIELD -1
KEY (DOWN) FIELD 1
KEY @1,A CALL @SHELLRUN WP.BAT
KEY @2,B CALL @RUN CHKDSK
KEY @3,C CALL @RUN DIR /W
KEY @4,D CALL @RUN FORMAT A:
KEY @5,E CALL @SHELL
KEY @6,Q,(ESC) GOTO @QUIT /* EXAM08X.BAT is gone so batch program stops
SET CURSOR ^C1==>
/.
Sample menuing system:
Pick an option:
^K A Run WordPerfect
^K B Run CHKDSK
^K C Do a directory
^K D Run FORMAT A:
^K E Drop into DOS
^K Q Quit
./
- @RUN Running a command while staying in The MENU System
CLS /* Unnecessary, but it looks better
RUN ^E1^ ^E2^ ^E3^ ^E4^
ECHO Press a key to continue
PAUSE
POP
- @SHELLRUN Running a batch command.
/* Copying the file as EXAM08X.BAT which is tested for in the
/* main batch file.
COPY ^E1^ EXAM08X.BAT
QUIT
- @SHELL Leaving the user in DOS itself
ECHO ^P20,1Enter EXIT and then (ENTER) to go back into The MENU System
RUN
POP
- @QUIT Quitting
ECHO ^P20,1Thanks for your interest!
QUIT