Supervising the Network
5-51
Customizing the User Environment
Login Script Commands and Variables
line to the login script:
SET PROMPT=“$P$G”
“$P” lists the current directory path; “$G” displays a “>” (greater than)
character. See your DOS manual for more information.
• To set a path for a program called DAILY, which is in the REPORTS
subdirectory beneath drive G:, you would add the following line:
SET PATH=“G:\REPORTS\DAILY”
This sets the variable PATH to G:\REPORTS\DAILY.
NOTE: Setting the variable PATH in the login script removes any search drives previously
assigned. Use SET PATH only before you map search drives. SET PATH also
overwrites any paths set in the user’s AUTOEXEC.BAT file.
To display this path, you can include PATH as an identifier variable in a WRITE
command by enclosing the variable (not the value) in angle brackets. For
example, the following line displays “My path is G:\REPORTS\DAILY.”
WRITE “My path is ”%<path>
• To include an environment variable in a MAP command, precede the variable
with a percent sign (%).
For example, you could include the following lines in a login script to set and
map a drive to the variable NWS:
SET NWS=“C:\XYZ”
MAP S16:=%<NWS>
Additional Information
SET_TIME
Use SET_TIME to set the workstation time equal to the time on the NetWare
server to which the workstation first connects.
For more information about Refer to
Using environment variables
as identifier variables in
other login script commands
“Identifier Variables” in this chapter
Using the SET command Your DOS manual