home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boldly Go Collection
/
version40.iso
/
TS
/
05B
/
MOD210A.ZIP
/
START.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-02-24
|
3KB
|
96 lines
@ECHO OFF
ECHO OFF
:AGAIN
CLS
ECHO ╔══════════════════════════════════════════════════════════╗
ECHO ║ ░░░░░░░░░░░░░░░░░░▌ SELECT AN OPTION ▐░░░░░░░░░░░░░░░░░░ ║
ECHO ╚══════════════════════════════════════════════════════════╝
ECHO
1 - Info ∙∙∙∙∙∙∙ Display or print user manual
ECHO
2 - Info ∙∙∙∙∙∙∙ Display or print order form
ECHO
3 - Info ∙∙∙∙∙∙∙ Display or print vendor information
ECHO
4 - Example ∙∙∙∙ Run MODEM as a simple terminal program
ECHO
5 - Problem ∙∙∙∙ If you have trouble making the example work
ECHO
9 - Quit ∙∙∙∙∙∙∙ Return to DOS
QUERY Your choice: @123459Q
IF ERRORLEVEL 6 GOTO QUIT
IF ERRORLEVEL 5 GOTO PROB
IF ERRORLEVEL 4 GOTO TERM
IF ERRORLEVEL 3 GOTO VI
IF ERRORLEVEL 2 GOTO OF
GOTO UM
:VI
SEE VENDOR.DOC
GOTO AGAIN
:OF
SEE ORDER.FRM
GOTO AGAIN
:UM
SEE MODEM.DOC
GOTO AGAIN
:TERM
CLS
ECHO This example runs MODEM as a simple terminal program.
ECHO Once the terminal program starts up, try typing:
ECHO AT «Enter»
ECHO Your modem should respond "OK".
ECHO Your modem's manual explains more about the commands it recognizes.
SET $PT=1
QUERY Select COM port: [1] COM1 [2] COM2 [Q] Quit @12Q
IF ERRORLEVEL 3 GOTO AGAIN
IF ERRORLEVEL 2 SET $PT=2
SET $BR=1200
QUERY Select baudrate: [1] 1200 [2] 2400 [9] 9600 [Q] Quit @129Q
IF ERRORLEVEL 4 GOTO AGAIN
IF ERRORLEVEL 3 SET $BR=9600
IF ERRORLEVEL 2 SET $BR=2400
IF (%$PT%)==() GOTO ENVERR
IF (%$BR%)==() GOTO ENVERR
CLS
ECHO The commands to start up MODEM using the values you requested are:
ECHO MODEM %$PT% SETBAUD %$BR%
ECHO MODEM %$PT% TERM
QUERY Press spacebar to continue... @ X
CLS
MODEM %$PT% SETBAUD %$BR%
MODEM %$PT% TERM
GOTO AGAIN
:PROB
CLS
ECHO If you have trouble getting your modem to respond, it does not necessar-
ECHO ily mean there is a problem. You may have to experiment around with the
ECHO port configuration, or you may have to turn the modem off and on to
ECHO reset it. If you can not make it work, call Pinnacle Software during
ECHO business hours for assistance.
ECHO If you ran out of environment space, this is a DOS limitation, not a
ECHO MODEM problem. Refer to the user manual for information about how to
ECHO issue the MODEM command at the DOS prompt.
GOTO PAUSE
:ENVERR
CLS
ECHO
Out of DOS environment space -- can not run example.
GOTO PAUSE
:PAUSE
QUERY Press spacebar to continue... @ X
GOTO AGAIN
:QUIT
CLS
SET $BR=
SET $PT=