2.3 Sample User Login Scripts

The following login script is an example of a login script created for user MARY. The user login script executes after the container and profile login scripts have executed. In addition, a user login script prevents the default login script from executing for this specific user.

Therefore, you should consider whether any commands in the default login script are necessary for setting the user's environment. If so, determine whether those commands should be placed into one of the other login scripts (container, profile, or user).

MAP DISPLAY OFF
MAP ERRORS OFF
MAP *7:=VOL1:MARY\PROJECTS\RESEARCH
MAP *8:=VOL1:FORMS
REM Mary needs access to FORMS while she's on the
REM troubleshooting team.
SET WP="/u-mjr/b-5"
SET USER="mrichard"
#SEND /A=N

For more detailed information about each type of login script command, see Login Script Commands and Variables.

2.3.1 Sample User Login Script for Mapping Drives

In addition to creating User login scripts in ConsoleOne, users can also add modify their own user login scripts from the N menu in the system tray. This is very useful if users want to add commands to their login scripts to map drives that they access frequently. For more information on editing user login scripts from the N menu, see Section 1.6, Modifying User Login Scripts from the N Menu.

The following sample shows how Takashi included his drive mappings in his User login script.

MAP F:=\\MKTG.TOKYO.DIGITALAIRLINE.COM\DATA
MAP G:=\\MKTG.TOKYO.DIGITALAIRLINE.COM\HOME\KYAMATO