home *** CD-ROM | disk | FTP | other *** search
- # Denver Supernet, Inc. PPP or SLIP login script
- # Copyright 1995 Quarterdeck Corporation
- # 5-9-95
-
- STRING username
- STRING password
- STRING framing
- STRING IPAddress
-
- # TRACE ON
-
- SetTimeOut 90
-
- CfgGetValue "Username" username
- IF result = 0 THEN
- GetInput "Enter your username:" username
- IF result = 0 THEN
- PRINT "Warning, no username entered."
- ELSE
- PRINT "Username set to:"; username
- ENDIF
- ENDIF
-
- CfgGetValue "Password" password
- IF result = 0 THEN
- GetPassword "Enter your password:" password
- IF result = 0 THEN
- PRINT "Warning, no password entered."
- ELSE
- PRINT "Password set."
- ENDIF
- ENDIF
-
- CfgGetValue "Framing" framing
- IF result = 0 THEN
- ABORT "Can't read 'Framing' setting from QDECK.INI."
- ENDIF
-
- CommWaitFor "username:"
- CommSend username
- CommSend "%r"
-
- CommWaitFor "password:"
- CommSend password
- CommSend "%r"
-
- CommWaitFor "annex:"
-
- IF framing = "MPSLIP" THEN
- CommSend "slip%r"
- PRINT "Getting IP Address for SLIP"
- CommWaitFor "our address is"
- CommReadIPAddr IPAddress
- IF result < 7 THEN # IP Address length test
- ABORT "Missing or invalid IP Address."
- ENDIF
- CfgSetValue "IPAddress" ipaddress
- PRINT "IP Address set to"; ipaddress
- ELSE
- CommSend "ppp%r"
- ENDIF
-
- END
-