You can start PACK with a single command from the command line. You can type the name of a single file that contains a list of all the files you want to compress.
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-line syntax is as follows:
PACK listfile [packedfile] /L [/H:headerpath\ |/H:headerfile |/H:headerpath\ headerfile] [/D:headerdate] [/T:headertime] [/C]
where:
listfile
For information about list files, see Creating a List File.
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.
Note: The path and file-name information stored in the header of the file that contains the compressed data can be displayed by using the /SHOW option available with UNPACK. For information about the /SHOW option, see the UNPACK command in the online OS/2 Command Reference.