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
/
TRANSPAC.SCR
< prev
next >
Wrap
Text File
|
1993-01-11
|
2KB
|
70 lines
!---------------------------------------------------------------------!
! !
! Copyright (c) 1993 !
! 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. !
! !
! Transpac SCRIPT: !
! Connect to Transpac !
! Success: returns %Success !
! Failure: saves error msg in %FailureMsg and returns %Failure !
! !
! $Revision:: 1.0 $ !
! !
!---------------------------------------------------------------------!
CompuServe_NUA = "19628030";
Tries = 5;
twice_tried = %FALSE;
on cancel goto Return_Cancel;
show "Connecting to Transpac";
wait until 20;
send %CR;
Wait_Transpac:
if Tries = 0 goto Transpac_Failure;
Tries = Tries - 1;
wait
"TRANSPAC" goto Send_Address,
"ERROR" goto Resend_Address,
"LIB" goto Resend_Address,
"NO CARRIER" goto Transpac_Failure,
"COM" goto Return_Success
until 80;
send %CR;
goto Wait_Transpac;
Resend_Address:
if twice_tried = %TRUE goto Cserve_NUA_Failure;
twice_tried = %TRUE;
Send_Address:
wait until 20;
show "Sending CompuServe NUA ...";
send CompuServe_NUA & %CR;
goto Wait_Transpac;
Transpac_Failure:
define %FailureMsg = "Transpac not responding";
goto Return_Failure;
Cserve_NUA_Failure:
define %FailureMsg = "Transpac not accepting CompuServe NUA";
Return_Failure:
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;