home *** CD-ROM | disk | FTP | other *** search
/ Media Gallery 1996 January / MG_0196.ISO / speaos2.cmd < prev    next >
OS/2 REXX Batch file  |  1995-11-17  |  5KB  |  120 lines

  1. /* SPEA Software Installation*/
  2.   DO FOREVER
  3.     CLS
  4.     SAY""
  5.     SAY""
  6.     SAY""
  7.     SAY"         ╔════════════════════════════════════════════════════════╗ "
  8.     SAY"         ║                                                        ║ "
  9.     SAY"         ║                   SPEA Superdisk CD                    ║ "
  10.     SAY"         ║                                                        ║ "
  11.     SAY"         ║            in Deutsch - geben Sie ein :  D             ║ "
  12.     SAY"         ║            in English - please enter  :  E             ║ "
  13.     SAY"         ║                                                        ║ "
  14.     SAY"         ║ SPEA Software AG                                       ║ "
  15.     SAY"         ╚════════════════════════════════════════════════════════╝ "
  16.     SAY""
  17.     SAY""
  18.     SAY""
  19.  
  20. /*  DO FOREVER*/
  21.     PULL LANG
  22.     IF LANG = "D" | LANG = "d" | LANG = "E" | LANG = "e" | LANG = ""  THEN LEAVE
  23.   END
  24.  
  25.   cls
  26.   SELECT
  27.     WHEN LANG = "D" | LANG = "d" THEN DO
  28.       say""
  29.       say""
  30.       say""
  31.       say"         ╔════════════════════════════════════════════════════════╗ "
  32.       say"         ║                                                        ║ "
  33.       say"         ║                   SPEA Superdisk CD                    ║ "
  34.       say"         ║                                                        ║ "
  35.       say"         ║  Bitte wählen Sie:                                     ║ "
  36.       say"         ║                                                        ║ "
  37.       say"         ║     I  für Informationen, Hanbücher, ...               ║ "
  38.       say"         ║                                                        ║ "
  39.       say"         ║          Achtung:                                      ║ "
  40.       say"         ║          Diese Auswahl startet MS Windows!             ║ "
  41.       say"         ║                                                        ║ "
  42.       say"         ║     S  Starte Installation                             ║ "
  43.       say"         ║                                                        ║ "
  44.       say"         ║     E  Erstelle Installationsdisketten                 ║ "
  45.       say"         ║                                                        ║ "
  46.       say"         ║ SPEA Software AG                                       ║ "
  47.       say"         ╚════════════════════════════════════════════════════════╝ "
  48.       say""
  49.     END 
  50.     WHEN LANG = "E" | LANG = "e" THEN DO
  51.       say""
  52.       say""
  53.       say""
  54.       say"         ╔════════════════════════════════════════════════════════╗ "
  55.       say"         ║                                                        ║ "
  56.       say"         ║                   SPEA Superdisk CD                    ║ "
  57.       say"         ║                                                        ║ "
  58.       say"         ║  Please press                                          ║ "
  59.       say"         ║                                                        ║ "
  60.       say"         ║     I  for Informations, Manuals, ...                  ║ "
  61.       say"         ║                                                        ║ "
  62.       say"         ║          Note: This option starts Windows.             ║ "
  63.       say"         ║                                                        ║ "
  64.       say"         ║     S  for starting installation                       ║ "
  65.       say"         ║                                                        ║ "
  66.       say"         ║     C  Create installation floppys                     ║ "
  67.       say"         ║                                                        ║ "
  68.       say"         ║ SPEA Software AG                                       ║ "
  69.       say"         ╚════════════════════════════════════════════════════════╝ "
  70.       say""
  71.       say""
  72.       say""
  73.     END 
  74.     WHEN LANG = "" THEN DO
  75.       EXIT
  76.     END
  77.   END
  78.  
  79.   DO FOREVER
  80.     PULL ACTION
  81.     IF ACTION="i" | ACTION="I" | ACTION="s" | ACTION="S" | ACTION="" THEN LEAVE
  82.     IF ACTION="c" | ACTION="C" | ACTION="e" | ACTION="E"  THEN LEAVE
  83.   END
  84.  
  85.   SELECT
  86.     WHEN ACTION = "i" | ACTION = "I" THEN DO
  87.       IF LANG = "e" | LANG = "E" THEN
  88.         DO
  89.           SAY directory("\SPEA\DOCS")
  90.           START "/F /C WINHELP pinfo_e.hlp"
  91.         END
  92.       ELSE
  93.         DO
  94.           SAY directory("\SPEA\DOCS")
  95.           START "/F /C WINHELP pinfo_d.hlp"
  96.         END
  97.       END
  98.     WHEN ACTION = "s" | ACTION = "S" THEN DO
  99.       directory("SPEA\INSTALL")
  100.       IF LANG = "e" | LANG = "E" THEN
  101.         START "/F /C INST -e -. -. \SPEA"
  102.       ELSE
  103.         START "/F /C INST -d -. -. \SPEA"
  104.       END
  105.     WHEN ACTION = "c" | ACTION = "C" | ACTION = "e" | ACTION = "E" THEN DO
  106.       IF LANG = "e" | LANG = "E" THEN
  107.         DO
  108.           SAY directory("\SPEA\INSTALL")
  109.           START "/F /C INST -e -. -NB makefloppy"
  110.         END
  111.       ELSE
  112.         DO
  113.           SAY directory("\SPEA\INSTALL")
  114.           START "/F /C INST -d -. -NB makefloppy"
  115.         END
  116.       END    
  117.     OTHERWISE
  118.     END
  119.   EXIT
  120.