Supervising the Network
5-23
Customizing the User Environment
Login Script Commands and Variables
COMSPEC command to the container login script.
• If more than one version of DOS is available on your network, a network
directory should exist for each DOS version. In this case, you can put COMSPEC
commands in either profile or user login scripts, to make sure each workstation
accesses the version of DOS it needs.
• If users are running DOS from their local drives, do not add COMSPEC to login
scripts.
• To use an environment variable as the value in a COMSPEC command, precede
it with the percent sign (%), as follows:
COMSPEC=%environment variable
CONTEXT
Use CONTEXT to set a user’s current context in the Directory tree.
Command Format
CONTEXT context
Using CONTEXT
Replace context with the context you want the user to see after login.
As with the workstation CX utility, you can enter a complete name to move
down through the context, or you can use periods to move up toward the
Root of the Directory tree.
NOTE: CONTEXT does not support all options that the CX workstation utility does. It only
sets the context.
Example
To change the context to the Organizational Unit SALES, under the
Organization ACME_US, add the following line to the login script:
CONTEXT .SALES.ACME_US
You can type a single period instead of a container name to indicate that you
want to move up one level.
For example, if you are in the context SALES.ACME_US and you want to
move up one level to the context ACME_US, add the following line to the
login script.