:CompressFile() - Compress the contents of the specified file
Class
Syntax
:CompressFile(cInFile, cOutFile) --> lSuccess
Parameters
|
|
cInFile |
FileName of the File to be Compressed |
|
|
cOutFile |
FileName the file that is to contain the compressed file data |
Return
lSuccess. .T. if the file could be Compressed and written to cOutFile. Otherwise .F.
If the operation failed, look at :nErr and :cErr for more information.
Description
Compress the contents of the specified file and write the results to an output file (cOutFile).
The compression ratio achieved by the :CompressFile() Method depends on the type of file that is being compressed. The compressed file is not stored in an archive format that is recognized by third-party applications such as PKZip or WinZip.
See Also