30
Novell Login Scripts Guide
no
vd
ocx
(e
n)
24
Ma
rch 20
09
NOTE:
Commands that work only on DOS or Windows 3.
x
workstations have not been included.
These commands include CLS, COMSPEC, DOS VERIFY, MACHINE, NOSWAP, and SWAP. For
information on using these commands, see the help file that accompanies the Novell
®
Client
TM
for
DOS and Windows 3.
x
software.
3.1 Login Script Conventions
The following table explains the conventions you should follow when creating login scripts.
Table 3-1
Login Script Conventions
Convention
Explanation
Minimum login script
No minimum. All types of login scripts are optional. Login scripts can
vary from one line to many. There are no required commands.
Case
Either uppercase or lowercase is accepted. Exception: identifier
variables enclosed in quotation marks and preceded by a percent
sign (%) must be uppercase. See
Section 3.2, “Using Identifier
Variables,” on page 31
.
Characters per line
Maximum 512 characters per line, including any variables after they
are replaced by their values; 78 characters per line (common screen
width) is recommended for readability.
Punctuation and symbols
Type all symbols (#, %, ", _) and punctuation exactly as shown in
examples and syntax.
Commands per line
Use one command per line. Start each command on a new line; press
Enter to end each command and start a new command.
Lines that wrap automatically are considered one command.
Sequence of commands
Generally, list commands in the order that you want them to execute,
with the following restrictions:
ATTACH
commands (NetWare
®
3 only) must precede related
MAP
commands to avoid prompting the user for a username/
password during login (see
Section 3.6, “ATTACH,” on
page 39
).
If you use # (see
Section 3.4, “#,” on page 37
) or @ (see
Section 3.5, “@,” on page 38
) to execute an external program,
the command must follow any necessary
MAP
commands. If
sequence is not important, group similar commands, such as
MAP
and
WRITE
commands, together to make the login script
easier to read.
Blank lines
Blank lines don't affect login script execution. Use them to visually
separate groups of commands.
Remarks
Lines beginning with REMARK, REM, an asterisk (*), or a semicolon
(;) are comments, which don't display when the login script executes
(see
Section 3.23, “REMARK,” on page 51
).
Use remarks to record the purpose of each command or group of
commands or to temporarily keep certain lines from executing.