Login Script Macros

Application Launcher/Explorer supports many, but not all, login script variables.

For information about using the macros in a valid Application object property, see Application Object Properties Where Macros Can Be Used .


Supported Login Script Macros

The following is a list of supported login script variables and what they mean. Alternate variable names are shown in parentheses.

Macro Description

%COMPUTER_NAME%

The name of the computer. For example: work_pc.

%DAY%

Numeric day of the month. For example: 01, 10, 15.

%FILESERVER% (%FILE_SERVER%)

Name of the NetWare file server or NDS monitored connection. For example: APPS_PROD.

%FULL_NAME%

Full name attribute of the User object. This is supported by virtue of Application Launcher/Explorer's support for NDS attributes from the User object.

%HOUR24% (%24HOUR%)

Time of the day according to a 24-hour clock. For example: 02, 05, 14, 22.

%HOUR% (%HOURS%)

Hour of the day. For example: 0 = 12, 13 = 1.

%LAST_NAME%

Last name of the current user (also known as the user's NDS Surname attribute). For example: Jones.

%LOGIN_NAME%

First eight bytes of the user's NDS object name. For example: jsmith.

%MINUTE% (%MINUTES%)

Current minute. For example: 02, 59.

%MONTH%

Current month number. For example: 01 for January.

%NDAY_OF_WEEK%

Numeric day of the week. For example: 1 for Sunday, 2 for Monday.

%NETWORK% (%NETWORK_ADDRESS%)

Workstation network address. For example: 01010120.

%OS_VERSION%

Version of the OS. For example: v5.00 (Win3x shows the DOS version, Win 95/98 and Win NT/2000 shows the Windows version).

%OS

OS type. For example: MSDOS, WIN95/98, WINNT, WIN2000. (Win3 shows MSDOS.)

%PLATFORM%

Platform running. For example: WIN, W95/98, WNT, W2000.

%PHYSICAL_STATION% (%P_STATION%)

MAC address. For example: 0000C04FD92ECA.

%REQUESTER_CONTEXT%

Context of the requester for the selected tree.

%SECOND% (%SECONDS%)

Number of seconds. For example: 03, 54.

%SHORT_YEAR%

Short year number. For example: 97, 00.

%WINVER%

Windows version. For example: v3.11, v4.00.

%WORKSTATION_ID%

The name of the workstation object.

%WORKSTATION_TREE%

The name of the tree in which the workstation is located.

%WORKSTATION_DN%

The distinguished name and context of the workstation object.

%YEAR%

Full year number. For example: 2000, 2001.


Unsupported Login Script Macros

The following is a list of login script macros that Application Launcher/Explorer does not support:

ACCESS_SERVER
AM_PM
DAY_OF_WEEK
DIALUP
ERROR_LEVEL
GREETING_TIME
LOCATION
LOGIN_ALIAS_CONTEXT
LOGIN_CONTEXT
MACHINE
MONTH_NAME
NEW_MAIL
OFFLINE
PASSWORD_EXPIRES
REQUESTER_VERSION
SHELL_VERSION
SMACHINE
STATION
USERID



  Previous Page: Special Windows Macros  Next Page: NDS Attribute Macros