Реферат: Networking Principles Essay Research Paper DialUp Scripting
Declares a variable of type boolean. You can use any boolean expression or variable to initialize the variable.
8.0 Commands
All commands are reserved words, which means you cannot declare variables that have the same names as the commands. The commands are listed below:
delay nSeconds
Pauses for the number of seconds specified by nSeconds before executing the next command in the script.
Examples:
delay 2 ; pauses for 2 seconds
delay x * 3 ; pauses for x * 3 seconds
getip value
Waits for an IP address to be received from the remote computer. If your Internet service provider returns several IP addresses in a string, use the value parameter to specify which IP address the script should use.
Examples:
; get the second IP address
set ipaddr getip 2
; assign the first received IP address to a variable
szAddress = getip
goto label
Jumps to the location in the script specified by label and continues executing the commands following it.
Example:
waitfor “Prompt*” until 10
if !$SUCCESS then
goto BailOut ; jumps to BailOut and executes commands
; following it
endif
transmit “bbs^M”
goto End
BailOut:
transmit “^M”
halt
Stops the script. This command does not remove the terminal dialog window. You must click Continue to establish the connection. You cannot restart the script.