Chapter 12: CAUSEWAY FILE COMPRESSOR

The CauseWay file compressor (CWC.EXE) compresses executable CauseWay applications to reduce their file size on disk. Space savings of 50% of the original exectuable file’s original size frequently occur.

CWC is simple to use. Specify the name of executable file along with any valid parameters. The command line follows this format:

CSC MTPROG [CWC OPTION]

MYPROG indicates the name of the CauseWay executable file to be compressed. If no extension follows MYPROG. .EXE is appended.

NOTE: CWC requires that an executable file be in 3P (CauseWay) format. If you are using Watcom C++, you must first translate the executable file to 3P format using the LE23 utility.

CWC OPTION

/D Treat input file as data

This option compresses the entire file without regard to making it an executable file. The file can be decompressed with the CWC option, /E, at the DOS command line or via the CauseWay cwcLoad API function at runtime.

/E Expand data file

The /E option expands a data file compressed with the CWC /D option. EXE files compressed with CWC are protected from decompression and will not expand using this option.

/L Literal string length

The /L option leaves a specified number of bytes left uncompressed at the beginning of a CWC file. Follow /L with the number of bytes to leave uncompressed in the file, e.g., /L200 will leave the first 200 bytes of a file uncompressed. This option is useful for keeping copyright messages uncompressed and readable with a file has otherwise compressed.

Next Page

Previous Page

Go to Table of Contents