home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
n
/
newscr.zip
/
NEWSCR.EXE
/
LATA.SCR
< prev
next >
Wrap
Text File
|
1993-02-05
|
2KB
|
70 lines
!---------------------------------------------------------------------!
! !
! Copyright (c) 1991 !
! by CompuServe Incorporated, Columbus, Ohio !
! !
! The information in this software is subject to change without !
! notice and should not be construed as a commitment by CompuServe. !
! !
! LATA Purpose: !
! Connect to LATA !
! Success: returns %Success !
! Failure: saves error msg in %FailureMsg and returns %Failure !
! Arg1 = False if Network setting is LATA-Ct, True if LATA !
! !
! $Revision:: 1.6 $ !
! !
!---------------------------------------------------------------------!
show "Connecting to LATA";
Tries = 5;
on cancel goto Return_Cancel;
Response_Char = ".";
if Arg1 = %TRUE goto Send_Response;
Response_Char = "H"; ! Ct. LATA selected
Send_Response:
if Tries = 0 goto LATA_Failure;
Tries = Tries - 1;
wait until 5;
send Response_Char;
wait until 2;
send Response_Char;
wait until 2;
send Response_Char;
wait until 2;
send %CR;
Wait_LATA:
wait
"*" goto Send_LATA_Host,
"COM^M" goto Return_Success,
"Err" goto Send_LATA_Host,
"NO CARRIER" goto LATA_Failure
until 70;
goto Send_Response;
Send_LATA_Host:
send ".CPS" & %CR;
goto Wait_LATA;
LATA_Failure:
define %FailureMsg = "LATA not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;