External Command Variable Substitution

A variable, such as the value returned by GetPath, can be used inside any quoted string within an executed external command. The variable is global. It goes out of scope only when the command processor is replaced by a different one. The variable can be dereferenced explicitly by an expression %{<var name>} within another string.

Variable Description

NWSERVER

The name of the server the script is processing on.

NWSRC

Source path where script is found.

NWDST

Destination path (where server will boot from).

NWBOOT

Current path (where server was booted from).

NWLANG

Language number (4 = English, etc.).

COUNTRY

Country ID (DOS country specifier).

CODEPAGE

Codepage number (DOS code page specifier).

OSTYPE

NetWare operating system type:
0 - Native
1 - OS/2
2 - SFT III

LOADERTYPE

Type of loader used to start NetWare:
1 - DOS
2 - OS/2
3 - Windows 3.1

SERVCONFIGTYPE

NetWare server configuration:
0 - Native
1 - SFT III I/O Engine
2 - SFT III MS Engine

SFTLEVEL

Level of active System Fault Tolerance for NetWare.

OSMAJORVERSION

The major version number for the NetWare OS.

OSMINORVERSION

The minor version number for the NetWare OS.

OSREVISION

The revision level for the NetWare OS.

All path variables, including the predefined ones, allow subfield specifiers in the form <path var>.<specifier>.

<path var> <specifier>

PATH

String containing the actual path.

VOL

Disk volume name.

PROMPT

Disk volume prompt.

TYPE

Path type.

SUBTYPE

Path subtype.

CONN

Connection number (hex).

ENGINE

Engine number.

TYPE

Values:
1 local server
2 remote server
3 local DOS
4 remote DOS (via RCONSOLE)

SUBTYPE

Values:
0 unknown
1 floppy
2 cd
3 network
4 other


Example

NLMExec 1, 'Pinstall %{NWLANG} %{NWSRC.CONN}'

If the server language is English, and the connection number for NWRSC is 5, it is as if the following were typed on the system console:

'load PINSTALL.NLM 4 5'



Previous | Next