Supervising the Network
5-44
Customizing the User Environment
Login Script Commands and Variables
For example, suppose you created a Directory Map object called WPROC,
which is located in the context SALES.ACME_US, and mapped that object to
the SYS:APPL\WORDPROC directory.
Following the rule of no complete names in a login script, you would create an
alias in your own context to the object in .SALES.ACME_US. Then use the
following line in your login script:
MAP S16:=WPROC
• Suppose an application in the FORM directory requires that it reside in the Root
directory of drive P:, but you don’t want to put the application in the Root
directory for security reasons.
You can map a fake root to the directory and map a search drive to it at the same
time by adding the following line to the login script:
MAP ROOT S16:=P:=SYS:APPL\FORM
• To map Richard’s first four regular drive mappings to his home directory, the
SYS:PUBLIC\OS2 directory (which contains the NetWare utilities for OS/2), the
REPORTS directory, and the PROJECTS directory, add the following four lines
to Richard’s user login script:
MAP *1:=VOL1:HOME\RICHARD
MAP *2:=SYS:PUBLIC\OS2
MAP *3:=VOL1:ACCOUNTS\REPORTS
MAP *4:=VOL1:UPDATES\PROJECTS
To map Richard’s fifth drive to the PUBLIC directory on a NetWare 3.11 server
named FS1, you need to include the server name in the MAP command. Use the
following line in your login script:
MAP *5:=FS1\SYS:PUBLIC
• If you are mapping a drive to a directory that is located on a volume within your
current context, include the volume’s common name in the MAP command, as
demonstrated in the previous examples.
If you are mapping a drive to a volume that is not in your current context, first
create an alias to that volume; then include the volume’s common name in the
MAP command.
For example, if the complete name of a volume not in your current context is
VOL1.SALES.ACME_US, then create an alias named VOL1: to that volume.
The MAP command would include only this common name.
To map a drive to the APPL directory in this volume, the line in the login script
would be