home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT140C.ZIP / MODEM.EXE / START.BAT < prev    next >
DOS Batch File  |  1992-02-24  |  3KB  |  96 lines

  1. @ECHO OFF
  2. ECHO OFF
  3. :AGAIN
  4.   CLS
  5.   ECHO           ╔══════════════════════════════════════════════════════════╗
  6.   ECHO           ║ ░░░░░░░░░░░░░░░░░░▌ SELECT AN OPTION ▐░░░░░░░░░░░░░░░░░░ ║
  7.   ECHO           ╚══════════════════════════════════════════════════════════╝
  8.   ECHO 
  9.           1 - Info ∙∙∙∙∙∙∙ Display or print user manual
  10.   ECHO 
  11.           2 - Info ∙∙∙∙∙∙∙ Display or print order form
  12.   ECHO 
  13.           3 - Info ∙∙∙∙∙∙∙ Display or print vendor information
  14.   ECHO 
  15.           4 - Example ∙∙∙∙ Run MODEM as a simple terminal program
  16.   ECHO 
  17.           5 - Problem ∙∙∙∙ If you have trouble making the example work
  18.   ECHO 
  19.           9 - Quit ∙∙∙∙∙∙∙ Return to DOS
  20.   QUERY           Your choice:  @123459Q
  21.   IF ERRORLEVEL 6 GOTO QUIT
  22.   IF ERRORLEVEL 5 GOTO PROB
  23.   IF ERRORLEVEL 4 GOTO TERM
  24.   IF ERRORLEVEL 3 GOTO VI
  25.   IF ERRORLEVEL 2 GOTO OF
  26.   GOTO UM
  27. :VI
  28.   SEE VENDOR.DOC
  29.   GOTO AGAIN
  30. :OF
  31.   SEE ORDER.FRM
  32.   GOTO AGAIN
  33. :UM
  34.   SEE MODEM.DOC
  35.   GOTO AGAIN
  36. :TERM
  37.   CLS
  38.   ECHO      This example runs MODEM as a simple terminal program.
  39.  
  40.  
  41.   ECHO      Once the terminal program starts up, try typing:
  42.  
  43.   ECHO      AT «Enter»
  44.  
  45.   ECHO      Your modem should respond "OK".
  46.  
  47.  
  48.   ECHO      Your modem's manual explains more about the commands it recognizes.
  49.  
  50.   SET $PT=1
  51.   QUERY      Select COM port:  [1] COM1  [2] COM2  [Q] Quit  @12Q
  52.   IF ERRORLEVEL 3 GOTO AGAIN
  53.   IF ERRORLEVEL 2 SET $PT=2
  54.   SET $BR=1200
  55.   QUERY      Select baudrate:  [1] 1200  [2] 2400  [9] 9600  [Q] Quit  @129Q
  56.   IF ERRORLEVEL 4 GOTO AGAIN
  57.   IF ERRORLEVEL 3 SET $BR=9600
  58.   IF ERRORLEVEL 2 SET $BR=2400
  59.   IF (%$PT%)==() GOTO ENVERR
  60.   IF (%$BR%)==() GOTO ENVERR
  61.   CLS
  62.   ECHO    The commands to start up MODEM using the values you requested are:
  63.  
  64.   ECHO    MODEM %$PT% SETBAUD %$BR%
  65.   ECHO    MODEM %$PT% TERM
  66.   QUERY    Press spacebar to continue... @ X
  67.   CLS
  68.   MODEM %$PT% SETBAUD %$BR%
  69.   MODEM %$PT% TERM
  70.   GOTO AGAIN
  71. :PROB
  72.   CLS
  73.   ECHO    If you have trouble getting your modem to respond, it does not necessar-
  74.   ECHO    ily mean there is a problem.  You may have to experiment around with the
  75.   ECHO    port configuration,  or you may have to  turn the  modem  off and on  to
  76.   ECHO    reset it.  If you can not make it work,  call  Pinnacle Software  during
  77.   ECHO    business hours for assistance.
  78.  
  79.   ECHO    If you ran out of environment space,  this is a  DOS  limitation,  not a
  80.   ECHO    MODEM problem.   Refer to the  user manual  for information about how to
  81.   ECHO    issue the MODEM command at the DOS prompt.
  82.   GOTO PAUSE
  83. :ENVERR
  84.   CLS
  85.   ECHO 
  86.    Out of DOS environment space -- can not run example.
  87.  
  88.   GOTO PAUSE
  89. :PAUSE
  90.   QUERY    Press spacebar to continue... @ X
  91.   GOTO AGAIN
  92. :QUIT
  93. CLS
  94. SET $BR=
  95. SET $PT=
  96.