You can start PACK with a single command from the command line. You can type the names of all the files you want to compress directly on the command line. Include the drive and path if the files are not in the working directory. You can specify file names with any combination of uppercase and lowercase letters. File-name extensions are not required; however, if you specify a file name that has an extension, also type the extension.
The command-syntax is as follows:
PACK sourcefile [packedfile] [/H:headerpath\ |/H:headerfile |/H:headerpath\ headerfile] [/D:headerdate] [/T:headertime] [/C] [/A] [/R]
where:
sourcefile
When the data is compressed, the name of the source file is placed in the header of the compressed file and is used as the destination file name during unpacking.
If a header file name is not specified, PACK automatically uses sourcefile as the name of the file that is placed in the header of the compressed file.
The date must follow the format /D:MM-DD-YYYY (for example: /D:08-20-1991 and /D:12-30-2010)
The time must follow the format /T:HH.MM (for example /T:02.06 and /T:14.54). Hour 00 represents 12 a.m. and hour 12 represents 12 p.m.
You cannot use /C when the headerpath is used.
The source file can be either in a compressed or uncompressed state. If the source file is in an uncompressed state, the data is compressed before being added to the file containing the compressed data.
The specified file to remove was not found.
The /R parameter is valid only when used in conjunction with sourcefile and packedfile.
Note: To display the path and file-name information stored in the header of the file that contains the compressed data, use the UNPACK command and specify the SHOW option. For information about the SHOW option, see the UNPACK command in the online OS/2 Command Reference.
You can also get end-to-end compressed data by using global file-name characters. For example:
PACK *.EXE BUNDLE