Under Windows NT 3.5, all PPP logon
scripts were defined in the switch.inf file,
located in the
This file contained all of the logon scripts. Windows NT 4.0 added the new, more complete scripting language that was discussed in the beginning of the appendix, but it maintained support for the switch.inf file to ensure backward compatibility. The switch.inf scripting language is adequate for most simple script situations.
To create a new script in the switch.inf file, go to the Script tab of the Dial-Up Networking configuration. Click the Edit script button. This opens an editor with the switch.inf file. The new script is a new section in the switch.inf file.
Each script begins with a section header that provides the name used to invoke the script, which is the simple name entered in the listbox on the Script tab. The section header is the script’s name enclosed in square brackets. For example, a script for logging into your office network with PPP might have the header:
The body of the script follows the header. It defines what you expect
to receive from the remote system using the
statement, and what the local system sends in response to the
expected values using the
COMMAND statement. The
COMMAND keywords are
always entered in upper case, as the following syntax shows:
is the value
expected from the remote system by the
is the value sent to the remote system ...