Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
733 B

  1. ;
  2. ; This is a script file that demonstrates how
  3. ; to establish a PPP connection with Compuserve,
  4. ; which requires changing the port settings to
  5. ; log in.
  6. ;
  7. ; Main entry point to script
  8. ;
  9. proc main
  10. ; Set the port settings so we can wait for
  11. ; non-gibberish text.
  12. set port databits 7
  13. set port parity even
  14. transmit "^M"
  15. waitfor "Host Name:"
  16. transmit "CIS^M"
  17. waitfor "User ID:"
  18. transmit $USERID, raw
  19. transmit "/go:pppconnect^M"
  20. waitfor "Password: "
  21. transmit $PASSWORD, raw
  22. transmit "^M"
  23. waitfor "One moment please..."
  24. ; Set the port settings back to allow successful
  25. ; negotiation.
  26. set port databits 8
  27. set port parity none
  28. endproc