CompressFileΒΆ

CompressFile compresses a file.

bool = CompressFile(ssFilename)

Return Value

bool is TRUE (1) if the copy could be created, otherwise FALSE (0).

Parameters

ssFilename

ssFilename is the file mane. CompressFile creates a new file with the extension .Z (see example).

Comment

This function uses the zlib-Library (http://www.gzip.org/zlib/). Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler.

Example

The following examples creates the file d:\Test.tar.gz.

b = CompressFile("d:\Test.tar")
if (b) {
   MoveFile("d:\Test.tar.Z", "d:\Test.tar.gz")
}

id-1829088