Creating a List File

To use a list file with PACK, you must first create a file that contains the names of the files you want to compress. You can give the list file any name. Following is an example of specifying a list file at the command line.

  PACK DEVICE.LST DEVICE.DRV /L

The /L indicates that DEVICE.LST is a list file. If the list file is not in the working directory, you must specify the drive and path. Global file-name characters are not permitted in the list-file name. DEVICE.DRV is the destination file for the end-to-end-compressed data. (End-to-end compressed data is the data from each of the files contained in the list file. This data is stored in a contiguous format in the destination file.)

The syntax used in the list file is similar to that used in the command line. The syntax for a single line in the list file follows:

  sourcefile
    [/H:headerpath\
    |/H:headerfile
    |/H:headerpath\ headerfile]
    [/D:headerdate]
    [/T:headertime]
    [/C]

When using the list-file method (method 2), global file-name characters are not permitted in the source-file name. Notice also that "PACK" is excluded and packedfile is not permitted in the list file, because they were specified on the command line. You can include comments or blank lines by entering a semicolon as the first character of the line. An example of a list file follows.

  ;This is a comment
  C:\OS2\COMMAND.COM
  CONFIG.SYS /H:CONFIG.BAK /C
  \OS2\INSTALL\DDINSTAL.EXE
   /H:\OS2\DDINSTAL.TMP
   /D:10-15-91 /T:11.45


[Back: Running PACK With a Listfile]
[Next: Starting UNPACK]