A login script is a file that contains a set of valid NetWare login command statements.
WRITE "\nGood %GREETING_TIME, %FULL_NAME." WRITE "You are attached to server %FILE_SERVER." WRITE "Today is %DAY_OF_WEEK, %MONTH_NAME %DAY, %YEAR." WRITE "The time now is %HOUR:%MINUTE:%SECOND %AM_PM.\n" MAP DISPLAY OFF MAP F:=SYS: MAP G:=DATA:COURSES\COMP642 MAP ROOT H:=DATA:USERS\%LOGIN_NAME MAP INS S1:=SYS:PUBLIC MAP INS S2:=SYS:LOGIN DRIVE H: MAP DISPLAY ON MAP
| Group | Variable | Description |
|---|---|---|
| Date | DAY | Day number for the current month. Possible values range from 01 to 31. |
| Date | DAY_OF_WEEK | Name of current day of week. Possible values are Monday, Tuesday, etc. |
| Date | MONTH | The number for the current month. Possible values range from 01 to 12. |
| Date | MONTH_NAME | Name of current month. Possible values are January, February, etc. |
| Date | NDAY_OF_WEEK | The current weekday number, ranges from 1 for Sunday to 7 for Saturday. |
| Date | SHORT_YEAR | The last two digits of the current year, for example 98 or 99. |
| Date | YEAR | The full four-digit year, for example 1998 or 1999. |
| Network | NETWORK_ADDRESS | The network address of the cabling system to which the user's workstation is attached. Expressed as an eight-digit hexadecimal number. |
| Network | FILE_SERVER | The name of the current file server. |
| Time | AM_PM | Day or night (A.M. or P.M.). |
| Time | GREETING_TIME | Displays welcome messages. Possible values are: Morning, Afternoon, or Evening. |
| Time | HOUR | The current hour of day or night, ranging from 01 through 12. |
| Time | HOUR24 | The current hour in 24-hour mode, ranging from 00 for 12:00 A.M. through 23 for 11:00 P.M. |
| Time | MINUTE | The current minute, ranging from 00 through 59. |
| Time | SECOND | The current second, ranging from 00 through 59. |
| User | FULL_NAME | The user's full name, as defined from SYSCON or USERDEF. |
| User | LOGIN_NAME | The user's unique login name. |
| User | USER_ID | The hexadecimal number assigned by NetWare for the user login name. |
| Workstation | OS | The workstation's operating system. Default value is MSDOS. |
| Workstation | OS_VERSION | The version of DOS being used on the workstation that is processing the login script. For example, V6.20. |
| Workstation | MACHINE | The long machine name that can be assigned in the SHELL.CFG or NET.CFG file. Default value is IBM_PC. |
| Workstation | P_STATION | The node address of the network card in the workstation. Expressed as a 12-digit hexadecimal value. |
| Workstation | SMACHINE | The short machine name that can be assigned in the SHELL.CFG or NET.CFG file. Default value is IBM. |
| Workstation | STATION | The connection number for the current station. |
| Workstation | SHELL_TYPE | The workstation's shell version number. |
- MAP [ROOT|INS|DEL] [drive:=path] MAP {DISPLAY|ERRORS} {ON|OFF}
- COMSPEC=[path]COMMAND.COM
- WRITE "text [control string] [%variable]" \r carriage return and line feed \n blank line \" quotation mark \7 beep
- PAUSE
- [F]DISPLAY [directory-path] filename
- ATTACH [fileserver[/username[;password]]]
- # [path]filename [parameters]
- IF condition THEN command MEMBER OF "group" IF condition THEN variable=value command AND | OR ELSE command END
- DRIVE drive-letter:
- EXIT "command-line"
- INCLUDE [path]filename
- GOTO label label:
- FIRE [PHASERS] n [TIMES]
- REM|;|*|REMARK
- [DOS] SET variable="value"
- BREAK {ON|OFF}
Back to the COMP642 Page