Поиск

Полнотекстовый поиск:
Где искать:
везде
только в названии
только в тексте
Выводить:
описание
слова в тексте
только заголовок

Рекомендуем ознакомиться

Остальные работы->Реферат
The book Summer of the Monkeys is about a family of four that had just moved to the Ozark Mountains, smack dab in the middle of the Cherokee Nation.Th...полностью>>
Остальные работы->Реферат
The American Dream is what all Americans strive to achieve. It is the illusion of prosperity and happiness. The American Dream consists of three diffe...полностью>>
Остальные работы->Реферат
The star football player was about to be forced off the team because of poor academic grades. In desperation, the coach approached the Dean of the col...полностью>>
Остальные работы->Реферат
In 1884 they had 3 patrolmen besides the marshal and by 1886 as needed they got 3 more policemen. The marshal and on other guy had the day shift while...полностью>>

Главная > Реферат >Остальные работы

Сохрани ссылку в одной из сетей:

Scripts Essay, Research Paper

3.0 Variables

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.

You must declare variables before you use them. When you declare a variable, you must also define its type. A variable of a certain type may only contain values of that same type. The following three types of variables are supported:

Type Description

integer A negative or positive number, such as 7, -12, or 5698.

string A series of characters enclosed in double-quotes; for example, “Hello world!” or “Enter password:”.

boolean A logical boolean value of TRUE or FALSE.

Variables are assigned values using the following assignment statement:

variable = expression

The variable gets the evaluated expression.

Examples:

integer count = 5

integer timeout = (4 * 3)

integer i

boolean bDone = FALSE

string szIP = (getip 2)

set ipaddr szIP

3.1 System Variables

System variables are set by scripting commands or are determined by the information your enter when you set up a Dial-Up Networking connection. System variables are read-only, which means they cannot be changed within the script. The system variables are:

Name Type Description

$USERID String The user identification for the current connection. This variable is

the value of the user name specified in the Dial-Up Networking

Connect To dialog box.

$PASSWORD String The password for the current connection. This variable is the

value of the user name specified in the Dial-Up Networking

Connect To dialog box.

$SUCCESS Boolean This variable is set by certain commands to indicate whether or not the command succeeded. A script can make

decisions based upon the value of this variable.

$FAILURE Boolean This variable is set by certain commands to indicate

whether or not the command failed. A script can make decisions

based upon the value of this variable.

These variables may be used wherever an expression of a similar type is used. For example,

transmit $USERID

is a valid command because $USERID is a variable of type string.

4.0 String Literals

Scripting for Dial-Up Networking supports escape sequences and caret translations, as described below.

String Literal Description

^char Caret translation

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.

Carriage return

Linefeed

\” Double-quote

\^ Single caret

\< Single ' = Relational Integers

== != Equality Integers, strings, booleans

and Logical AND Booleans

or Logical OR Booleans

Examples:

count = 3 + 5 * 40

transmit “Hello” + ” there”

delay 24 / (7 – 1)


Загрузить файл

Похожие страницы:

  1. Mike Essay Research Paper

    Реферат >> Остальные работы
    Mike Essay, Research Paper “Mike” Influence? Why is it ... , we found uncritical appreciation in each other. We both were obsessed ... . We even tried writing a few scripts together. Of course, as two ... not have normal emotions toward each other. As friends, we were ...
  2. Ecommerce Essay Research Paper E

    Реферат >> Остальные работы
    Ecommerce Essay, Research Paper E – Commerce: An Introduction With ... Defense began funding the research of computer networking. The ... for the army, and a research device for some American universities ... not have HTML, CGI scripting, ODBC, and special programs ...
  3. Ibm Essay Research Paper AppleScript

    Реферат >> Остальные работы
    Ibm Essay, Research Paper * AppleScript Welcome to Macintosh OS Scripting This document is your ... to open and run scripts, make new scripts by recording or writing ... been corrected for scripts recorded with AppleScript 1.1.2. For scripts recorded with previous ...
  4. Remote Control Software Essay Research Paper Remote

    Реферат >> Остальные работы
    Remote Control Software Essay, Research Paper Remote Control Software Used in a ... considerably. NetOp’s File Manager includes a scripting utility designed to automate transfers ... operations without intervention. NetOp scripting also includes an ActiveX Control ...
  5. Romeo And Juliet Essay Research Paper SEXUAL

    Реферат >> Остальные работы
    Romeo And Juliet Essay, Research Paper SEXUAL HARASSMENT IN THE ... the workplace and scripts resulted. Those scripts were then by ... the workplace and scripts resulted. Those scripts were then by ... the workplace and scripts resulted. Those scripts were then by ...

Хочу больше похожих работ...

Generated in 0.0017199516296387