Command Format
Examples
SHIFT [n]
Replace n with the number of places that you want the variable to shift. The
default is SHIFT 1.
When Mary logs in, she wants to access her word processing program, change
the way it is set up, and map a drive to her work directory called ACCNTS.
Mary also has a command in her login script to map a drive to her
DATABASE directory, but she does not need it today. The commands in
Mary's login script are shown here:
:LOOP
IF "%2"="WP" THEN
SET WP="\U-CML\B-10\D"
MAP S16:=SYS:APPL\WP\SETUP
END
IF "%2"="ACCNTS" THEN MAP G:=SYS:ACCNTS
IF "%2"="DATABASE" THEN MAP S16:=SYS:APPL\DATABASE
SHIFT
IF "%2"<>"" THEN GOTO LOOP
(In the last line,
IF "%2" < >
is followed by closed quotation marks, which means "If %2 isn't blank".)
With these commands in her login script, and assuming a command line login,
Mary can log in to the primary file server (named FS1) using her username,
MARY, as follows:
LOGIN FS1\MARY WP ACCNTS
The parameters in Mary's login command are given the following values:
%0=FS1
%1=MARY
%2=WP
%3=ACCNTS
Mary's login script looks for %2, which is WP, and sets the word processing
environment. Then the login script shifts the variables one to the left so that
Login Script Commands and Variables
87
Need help?
Do you have a question about the NETWARE 6-DOCUMENTATION and is the answer not in the manual?
Questions and answers