Supervising the Network
5-62
Customizing the User Environment
Identifier Variables
specify a path, such as COMSPEC.
• Type the variable exactly as shown.
• To use DOS environment variables as identifiers, enclose them in angle brackets.
• Identifier variables can be placed within literal text strings in a WRITE statement.
However, the identifier variable must be in uppercase letters and preceded by a
percent sign. (Literal text is the text that is displayed on the screen, such as “Sales
report is due today.” Literal text must be enclosed in quotation marks.)
Examples
• If user Smith logs in during the morning, both of the following lines display the
same message on his screen (“Good morning, SMITH”):
WRITE “Good ”; GREETING_TIME; “, ”; LAST_NAME
WRITE “Good %GREETING_TIME, %LAST_NAME”
• To use DOS environment variables as identifiers, enclose them in angle brackets.
The following example uses the DOS environment variable “path”:
WRITE “my path is ”%<path>
The text displayed on the screen is similar to this:
my path is z:.;y:.;c:\WINDOWS
Using LOGIN Parameters with %n Variables
Some variables in a login script can be indicated by a percent sign (%)
followed by a number from 0 to 9.
When a user logs in, he or she can type additional parameters that the
LOGIN utility passes to the login script. The login script then substitutes
these parameters for any %n variables in the login script. These variables are
replaced in order by the parameters the user typed when executing the
LOGIN utility.
The %0 variable is replaced by the name of the NetWare server the user
typed at the command line, and %1 is replaced by the user’s login name. The
remaining variables change, depending on what the user types when
executing LOGIN. The %n variables must precede all command line
options.