home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1997 December
/
dpcb1297.iso
/
Internet
/
CSI26UK
/
SCRIPTS.LIB
/
ARGNET.SCR
next >
Wrap
Text File
|
1996-09-23
|
2KB
|
67 lines
!
! Copyright (c) 1996
! 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.
!
! CPS_ARG:
! Connect to CPS_ARG
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.9.1"
!-V
show "Connecting to CompuServe Argentina";
Tries = 5;
on cancel goto Return_Cancel;
FailStr = "CompuServe Argentina not responding";
Wait_CPS_ARG:
if Tries = 0 goto CPS_ARG_Failure;
wait until 10;
wait
%mdm_Failure goto NO_Carrier,
"% Connection Refused" goto CPS_ARG_Failure,
"Username:" goto Send_CPS_ARG_Host,
"gw-1" goto send_access,
"Password:" goto send_Password,
"User ID:" goto Return_Success,
"Host Name:" goto Return_Success
until 150;
Tries = Tries - 1;
goto Wait_CPS_ARG;
Send_CPS_ARG_Host:
wait until 15;
send "cps" & %CR;
goto Wait_CPS_ARG;
send_access:
wait until 15;
send "cps-test" & %CR;
goto Wait_CPS_ARG;
send_Password:
wait until 15;
send "" & %CR;
goto Wait_CPS_ARG;
NO_Carrier:
FailStr = "Modem connection lost";
CPS_ARG_Failure:
define %FailureMsg = FailStr;
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
send %CR;
exit %Success;