Copyright (c) 1995 Microsoft Corp.
Many Internet service providers and online services require you to manually enter information, such as your user name and password, to establish a connection. With Scripting support for Dial-Up Networking, you can write a script to automate this process.
A script is a text file that contains a series of commands, parameters, and expressions required by your Internet service provider or online service to establish the connection and use the service. You can use any text editor, such as Microsoft Notepad, to create a script file. Once you’ve created your script file, you can then assign it to a specific Dial-Up Networking connection by running the Dial-Up Scripting Tool.
A command is the basic instruction that a script file contains. Some commands require parameters that further define what the command should do. An expression is a combination of operators and arguments that create a result. Expressions can be used as values in any command. Examples of expressions include arithmetic, relational comparisons, and string concatenations.
; the end of the line.
A script must have a main procedure, specified by the proc keyword, and a matching endproc keyword, indicating the end of the procedure.
You must declare variables before you add commands. The first command in the main procedure is executed, and then any subsequent commands are executed in the order they appear in the script. The script ends when the end of the main procedure is reached.
Scripts may contain variables. Variable names must begin with a letter or an underscore (‘_’), and may contain any sequence of upper- or lower-case letters, digits, and underscores. You cannot use a reserved word as a variable name. For more information, see the list of reserved words at the end of this document.
integerA negative or positive number, such as 7, -12, or 5698.
stringA series of characters enclosed in double-quotes; for example, “Hello world!” or “Enter password:”.
booleanA logical boolean value of TRUE or FALSE.
The variable gets the evaluated expression.
decisions based upon the value of this variable.
based upon the value of this variable.
is a valid command because $USERID is a variable of type string.
Scripting for Dial-Up Networking supports escape sequences and caret translations, as described below.
If char is a value between ‘@’ and ‘_’, the character sequence is translated into a single-byte value between 0 and 31. For example, ^M is converted to a carriage return.
If char is a value between a and z, the character sequence is translated into a single-byte value between 1 and 26.
If char is any other value, the character sequence is not specially treated.