home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Grolier Multimedia Encyclopedia 1996
/
TheGrolier1996MultimediaEncyclopedia-Win31.iso
/
cim
/
scripts.lib
/
DATEXP.SCR
< prev
next >
Wrap
Text File
|
1995-06-22
|
1KB
|
62 lines
!
! Copyright (c) 1995
! 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.
!
! DATEX:
! Connect to Datex-P
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.6"
!-V
show "Connecting to Datex-P";
Tries = 5;
on cancel goto Return_Cancel;
FailStr = "Datex-P not responding";
Wait_Datex:
if Tries = 0 goto Datex_Failure;
Tries = Tries - 1;
wait until 15;
send ".";
wait until 15;
send %CR;
wait
%mdm_Failure goto NO_Carrier,
"DATEX-P:" goto Send_Datex_Host
until 30;
goto Wait_Datex;
Send_Datex_Host:
wait until 15;
send "R 4569002330" & %CR;
wait
%mdm_Failure goto NO_Carrier,
"User ID:" goto Return_Success,
"Host Name:" goto Return_Success
until 150;
goto Wait_Datex;
NO_Carrier:
FailStr = "Modem connection lost";
Datex_Failure:
define %FailureMsg = FailStr;
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
send %CR;
exit %Success;