home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 1996 April
/
cd2.iso
/
demos
/
riserule
/
pkcomp.txt
< prev
next >
Wrap
Text File
|
1994-10-25
|
4KB
|
71 lines
PKCOMP allows the SIERRA developer to specify some switch parameters for
compression. PKCOMP will create subdirectories from a supplied (or default)
destination and proceed to compress files into DISKn directories starting
at DISK1 until completed. If the collection of files is too great for the
size of a disk then a new directory, DISK(n+1), will be generated. There
are several command line parameters that can be specified for compression
of files.
/A<size> - Sets the maximum size for compression files for
for each disk. The default is 1457664 (approx
1.44 MB)
/L<filename> - Listfile of all files to be compressed. The full
path name must be included in this list. One
filename per line <cr> delimeted.
/F<n><size> - Sets the maximum size for DISK<n> at <size> bytes.
This allows for room to be left on specific disks
for other files. There may be a maximum of 5 '/F'
switches.
/D<directory> - Destination directory path. This is where PKCOMP
will create the DISKn subdirectories. (Default is
CurrentDir)
/N<filename> - Destination filename. This will be the name of the
compression file. (Default = RESOURCE.000)
/C<filenames> - Filenames to compress. May have '*' wildcards. There
can be a maximum of 5 '/C' switches (otherwise use
the '/L' switch). This switch cannot be used with the
/L switch.
/S<n> - Start at disk number (1-n)
/X - Perform no compression. This switch is used to simply
create a PKCOMP.INF file that lists the files and
their sizes for the SIERRA.INF file.
/Z - Performs no compression, BUT does create a "archive"
file. This file is then treated as a compressed file.
This switch is used to break up large resouce files
that may already be compressed.
Upon completion of the PKCOMP utility a file called PKCOMP.INF is generated in
the destination directory. This file is created in the format to be used in the
SIERRA.INF file to be shipped with the product. The data in the file should be
cut and paste into your product script file.
Examples of the PKCOMP utility is as follows:
PKCOMP /dc:\productX /f11357664 /f21357664 /Lmylist.txt
This creates a compression file called RESOURCE.000 (default) under the
c:\productX directory. It will first create a subdirectory DISK1. The
compressed file in the first subdirectory (as well as DISK2) will be no
greater than 1,357,664 bytes. This leaves room on the first two disks of
100 KB each. All the files to be compressed can be found in a file called
mylist.txt.
PKCOMP /a1000000 /c*.avi /c*.wav /c*.mid /cbitmaps\*.bmp /nAUDVID.000
The above example produces a compressed archive file under the current
directory in subdirectories DISK1 to DISKn all compressed files will be
no greater than 1 MB and will contain all AVI, WAV and MID files from
the current directory and all bitmaps from the BITMAPS subdirectory. The
files will be compressed into an archive named AUDVID.000.
PKCOMP /c*.* /x
As the script file, SIERRA.INF, requires ALL files associated with a product
to be listed, the above example provides a way to generate a PKCOMP.INF file
for those files not being compressed. This example will find all the filenames
and sizes of files in the current directory and put them into a PKCOMP.INF
file for use to cut and paste into a product's SIERRA.INF file. The PKCOMP.INF
file can be found in the destination directory, in this case, the current
working directory.