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
/
DATAPAC.SCR
< prev
next >
Wrap
Text File
|
1993-01-04
|
2KB
|
63 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. !
! !
! DATAPAC Script: !
! Connect to DataPac !
! Success: returns %Success !
! Failure: saves error msg in %FailureMsg and returns %Failure !
! !
! $Revision:: 1.4 $ !
! !
!---------------------------------------------------------------------!
show "Connecting to DataPac";
Tries = 5;
on cancel goto Return_Cancel;
Wait_DataPac:
if Tries = 0 goto DataPac_Failure;
Tries = Tries - 1;
wait
"Connected" goto Return_Success,
"Invalid" goto Wait_DataPac, ! Try again.
"DataPac" goto Send_DataPac_Host
until 15;
send "..." & %CR;
goto Wait_DataPac;
Send_DataPac_Host:
wait until 10;
send "P 29400138" & %CR;
Wait_For_Connect: ! Second wait loop will not match DataPac.
if Tries = 0 goto DataPac_Failure;
Tries = Tries - 1;
wait
"Connected" goto Return_Success,
"Invalid" goto Wait_For_Connect ! Try again.
until 30;
send "..." & %CR;
goto Wait_DataPac;
DataPac_Failure:
define %FailureMsg = "DataPac is not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;