5.3 NLM Compression Tools

NLMPACK is an NLM compression utility that you can use to reduce the disk storage size of your NLM files. NLMPACK can be used for NLMs that run on the NetWare 4.x or later. When the NetWare operating system loads an NLM, it checks to see if the NLM is in compressed format. If the NLM has been compressed, the operating system automatically decompresses it as the operating system loads the NLM into memory.

NLMPACK comes in two versions. NLMPACKP runs in protected mode and NLMPACK runs in real mode. For convenience consider references to NLMPACK to apply to NLMPACKP also.

UNPACK is a utility that unpacks NLMs that were packed using NLMPACK. There are two versions of this utility. UNPACK runs in real mode and UNPACKP runs in protected mode.

NLMPACK and UNPACK Syntax

Usage of NLMPACK is as follows:

  NLMPACK <source name> <target name>
  

source name is the name of the NLM that is to be compressed.

target name is the name of the file that the compressed NLM is to be placed in.

NOTE:target name can be the same as source name.

Usage of UNPACK can be seen by entering "UNPACK" with no parameters at the command line. The usage is as follows:

  UNPACK <source name> <target name>
  

source name is the name of the packed NLM that your want to unpack.

target name is the destination file name for the unpacked NLM.

WARNING:target name cannot be the same as source name.