home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Des Monats 1995 October
/
CD10_95.bin
/
swdirekt
/
netze
/
wincimd
/
disk1
/
scripts.lib
/
FENICS.SCR
< prev
next >
Wrap
Text File
|
1994-12-29
|
2KB
|
74 lines
!
! Copyright (c) 1994
! 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.
!
! FENICS:
! Connect to FENICS through either NIFTY LL or CompuPass.
! Arg1 contains TRUE if connect is to NIFTY LL and FALSE otherwise
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.5.2"
!-V
Host_Sent = %FALSE;
if Arg1 goto Define_NIF_Strings;
ConnectStr = "Verbindungsaufbau mit dem Fenics-Netzwerk";
FailStr = "CompuPass antwortet nicht";
HostStr = "C CIS" & %CR;
goto Start_FENICS;
Define_NIF_Strings:
ConnectStr = "Verbindungsaufbau mit dem NIFTY-LL-Netzwerk";
FailStr = "NIFTY-LL antwortet nicht";
HostStr = "C CPS" & %CR;
Start_FENICS:
show ConnectStr;
Tries = 5;
on cancel goto Return_Cancel;
Wait_FENICS:
if Tries = 0 goto FENICS_Failure;
Tries = Tries - 1;
wait
"ready" goto Send_FENICS_Host,
%mdm_Failure goto NO_Carrier,
"User ID:" goto Check_Success,
"Host Name:" goto Check_Success
until 80;
send %CR & %CR & %CR;
Host_Sent = %FALSE;
goto Wait_FENICS;
Send_FENICS_Host:
if Host_Sent goto Wait_FENICS;
send HostStr;
Host_Sent = %TRUE;
goto Wait_FENICS;
Check_Success:
if Host_Sent goto Return_Success;
goto Wait_FENICS;
NO_Carrier:
FailStr = "Modemverbindung wurde abgebrochen";
FENICS_Failure:
define %FailureMsg = FailStr;
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
send %CR;
exit %Success;