Supervising the Network

5-66
Customizing the User Environment
Examples of Login Scripts
Table 5-8 Sample Container Login Script
Login script command Purpose
MAP DISPLAY OFF Prevents MAP commands from displaying on
the screen as they are assigned.
MAP ERRORS OFF Prevents mapping errors from displaying on
the screen.
MAP *1:=SYS: Maps the first drive to volume SYS:.
MAP *1:=SYS:%LOGIN_NAME Maps the first drive to the users home
directory if LOGIN_NAME is the same as
the users home directory. If the user has no
home directory, the first drive is still mapped
to SYS:.
IF “%1”=”ADMIN” THEN MAP
*1:=SYS:SYSTEM
If the login name is ADMIN, the first drive is
mapped to SYS:SYSTEM instead of the
users home directory.
IF MEMBER OF “WIN31” THEN
MAP INS
*2:=SYS:USERS\%LOGIN_NAME\WIN31
MAP INS S16:=SYS:APPS\WINAPPS\WIN31\
SET TEMP =“P:\USERS\%LOGIN_NAME\
WIN31\
TEMP”
END
If the user who logs in is a member of the
Group object WIN31, the next available drive
is mapped to that users Windows directory.
Then the next available search drive is
mapped to the Windows directory for the
WIN31 group. Finally, the Windows TEMP
directory is set to a subdirectory of the users
Windows directory.
MAP INS S16:=VOL1:APPL\WP Maps the next available search drive to the
directory that contains WordPerfect.
MAP INS S16:=VOL1:APPL\LOTUS Maps the next available search drive to the
directory that contains Lotus.
MAP INS S16:=SYS:EMAIL Maps the next available search drive to the
EMAIL directory.