home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 July / Chip_2000-07_cd.bin / servis / SPNT / sp6x86.exe / switch.inf < prev    next >
Encoding:
INI File  |  1999-12-15  |  6.1 KB  |  175 lines

  1. ; SWITCH.INF for Windows NT Dial-Up Networking/Remote Access Service
  2. ; Copyright 1995 Microsoft Corporation
  3.  
  4. ; You should read all of the comments in this file before you
  5. ; activate a script. Complete information about using this file
  6. ; is available in RASPHONE.HLP.
  7.  
  8. ; This file provides sample logon scripts for connections to
  9. ; remote computers. Connections to Windows NT RAS computers do not use
  10. ; this file, so this file is used only for connecting to
  11. ; non-Microsoft computers.
  12.  
  13. ; SEE   Dial-Up Networking now supports the Windows 95 scripting
  14. ; ALSO  language which you may find easier to use than SWITCH.INF
  15. ;       scripts.  The language is described in
  16. ;       <winnt>\system32\ras\script.doc.
  17.  
  18. ; The most common use of scripts is an after-dialing script that
  19. ; logs you on to a remote computer, such as an Internet connection
  20. ; provider.  You activate the scripts in this file by editing the
  21. ; Script settings in the Dial-Up Networking phonebook entry
  22. ; properties of the remote computer.
  23.  
  24. ; The Generic logon script can be activated and used immediately.
  25. ; The additional scripts in this file are provided as examples from
  26. ; which you can cut and paste relevant sections into your own scripts.
  27. ; The comment marker (;) in column one of the non-generic scripts must
  28. ; be removed before the scripts will work.
  29.  
  30. ; These scripts assume the remote computer uses the words login and
  31. ; password followed by a colon (eg "login:" and "password:") to prompt
  32. ; you for your username and password.  If the remote computer prompts
  33. ; you with words other than login and password,  you must
  34. ; replace ogin: and assword: in the scripts below with the exact
  35. ; text the remote computer uses. Note: The text in the script does not
  36. ; include the first few letters because the remote computer may respond
  37. ; with <Password> or <password>.
  38.  
  39. ;==============================================================
  40.  
  41. [Generic login]
  42.  
  43. ; This script will automate many logons when the remote computer
  44. ; prompts only for login (username) and password. This script requires
  45. ; Windows NT 3.51 or later.
  46.  
  47. ; When you first dial this entry, the "Connect to" window will
  48. ; prompt for your username and password.  The username and password
  49. ; entered on that window will be used by the <username> and <password>
  50. ; macros in this script.  By requiring the username and password on
  51. ; initial dial, this script is secure.
  52.  
  53. ; The "Use current username and password" check box on the
  54. ; Dial-Up Networking phonebook entry properties Security page must be
  55. ; cleared when using this script (cleared by default), because the
  56. ; clear password is not available in that case.  Passwords saved with
  57. ; the "Save Password" checkbox will work.
  58.  
  59.  
  60. ; Each script is a sequence of alternating COMMANDs and responses.
  61. ; Here, we start communication with the remote computer by saying
  62. ; we have nothing to send before expecting a response.
  63.  
  64.       COMMAND=
  65.  
  66.  
  67. ; The following two lines cause RAS to ignore all responses
  68. ; until the remote computer requests your login name. If the remote
  69. ; computer prompts you with a word other than login you must
  70. ; replace ogin: in the line below with the exact text the
  71. ; remote computer uses.
  72.  
  73.       OK=<match>"ogin:"
  74.       LOOP=<ignore>
  75.  
  76.  
  77. ; This is the equivalent of typing the same username you filled in
  78. ; on the "Connect to" window or saved with the "Save password"
  79. ; checkbox.
  80.  
  81.       COMMAND=<username><cr>
  82.  
  83.  
  84. ; The following two lines cause RAS to ignore all responses
  85. ; until the remote computer requests your password. If the remote
  86. ; computer prompts you with a word other than password you must
  87. ; replace assword: in the line below with the exact text the
  88. ; remote computer uses.
  89.  
  90.       OK=<match>"assword:"
  91.       LOOP=<ignore>
  92.  
  93.  
  94. ; This is the equivalent of typing the same password you filled in
  95. ; on the "Connect to" window or saved with the "Save password"
  96. ; checkbox.
  97.  
  98.       COMMAND=<password><cr>
  99.  
  100.  
  101. ; Ignore the final responses from the computer.
  102.  
  103.       OK=<ignore>
  104.  
  105. ; =====================================================================
  106. ; ADDITIONAL EXAMPLE SECTION
  107.  
  108. ; This additional script is provided as an example from which you can
  109. ; cut and paste relevant sections into your own scripts.  The comment
  110. ; marker (;) in column one must be removed before the ; script will
  111. ; work.
  112.  
  113. ;======================================================================
  114.  
  115. ; [Sample SLIP login]
  116.  
  117. ; Because SLIP connection logon sequences vary widely, it is difficult
  118. ; to provide even a generic version for you to use. The following script
  119. ; was used to connect to an actual SLIP provider.
  120.  
  121. ;  Start communication with remote computer by sending COMMAND=
  122. ;      COMMAND=
  123.  
  124.  
  125. ; The following two lines cause RAS to ignore all responses
  126. ; until the remote computer requests your login name. If the remote
  127. ; computer prompts you with a word other than login you must
  128. ; replace ogin: in the line below with the exact text the
  129. ; remote computer uses.
  130.  
  131. ;     OK=<match>"ogin:"
  132. ;     LOOP=<ignore>
  133.  
  134.  
  135. ; You must replace YourLoginHere in the line below
  136. ; with your actual login.
  137.  
  138. ;      COMMAND=YourLoginHere<cr>
  139.  
  140.  
  141. ; The following two lines cause RAS to ignore all responses
  142. ; until the remote computer requests your password. If the remote
  143. ; computer prompts you with a word other than password you must
  144. ; replace assword: in the line below with the exact text the
  145. ; remote computer uses.
  146.  
  147. ;      OK=<match>"assword:"
  148. ;      LOOP=<ignore>
  149.  
  150.  
  151. ; You must replace YourPasswordHere in the line below
  152. ; with your actual password.
  153.  
  154. ;      COMMAND=YourPasswordHere<cr>
  155.  
  156.  
  157. ; Provide 4 carriage returns to ignore 4 questions.
  158. ;    COMMAND=<cr>
  159. ;    COMMAND=<cr>
  160. ;    COMMAND=<cr>
  161. ;    COMMAND=<cr>
  162.  
  163. ; Wait for Home prompt.
  164. ;    COMMAND=
  165. ;    OK=<match>"Home"
  166. ;    LOOP=<ignore>
  167.  
  168. ; Request SLIP connection.
  169. ;   COMMAND=SLIP<cr>
  170.  
  171. ; At this point the script successfully ends and the SLIP Login Terminal
  172. ; window appears. You would enter the IP address provided by the remote
  173. ; computer (in the SLIP Login Terminal window) in the IP Address box and
  174. ; press the Done button.
  175.