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 >
Text File  |  1993-01-09  |  1KB  |  46 lines

  1. /* EXAM08.CTL
  2. /* Creating a sample user menu
  3. - (ONCE)
  4. DELETE EXAM08X.BAT     /* Killing off the temporary batch file
  5. - *000 Main menu
  6. KEY (UP) FIELD -1
  7. KEY (DOWN) FIELD 1
  8. KEY @1,A CALL @SHELLRUN WP.BAT
  9. KEY @2,B CALL @RUN CHKDSK
  10. KEY @3,C CALL @RUN DIR /W
  11. KEY @4,D CALL @RUN FORMAT A:
  12. KEY @5,E CALL @SHELL
  13. KEY @6,Q,(ESC) GOTO @QUIT     /* EXAM08X.BAT is gone so batch program stops
  14. SET CURSOR ^C1==>
  15. /.
  16. Sample menuing system:
  17.  
  18.     Pick an option:
  19.  
  20.     ^K   A Run WordPerfect
  21.     ^K   B Run CHKDSK
  22.     ^K   C Do a directory
  23.     ^K   D Run FORMAT A:
  24.     ^K   E Drop into DOS
  25.  
  26.     ^K   Q Quit
  27. ./
  28. - @RUN Running a command while staying in The MENU System
  29. CLS       /* Unnecessary, but it looks better
  30. RUN ^E1^ ^E2^ ^E3^ ^E4^
  31. ECHO Press a key to continue
  32. PAUSE
  33. POP
  34. - @SHELLRUN Running a batch command.
  35. /* Copying the file as EXAM08X.BAT which is tested for in the
  36. /* main batch file.
  37. COPY ^E1^ EXAM08X.BAT
  38. QUIT
  39. - @SHELL Leaving the user in DOS itself
  40. ECHO ^P20,1Enter EXIT and then (ENTER) to go back into The MENU System
  41. RUN
  42. POP
  43. - @QUIT Quitting
  44. ECHO ^P20,1Thanks for your interest!
  45. QUIT
  46.