Compresses the source file and writes the compressed file into the destination file.
object.Compress(
SourceFile As String,
DestinationFile As String)
The name of the file to be compressed.
The name of the output file.
Boolean. Returns TRUE if successful, otherwise, FALSE.
This example compresses server.bas and writes it into ion.bas.
Set Zip=CreateObject("UCX:ZipFile")
print Zip.Compress("server.bas","ion.bas")
If(err.Number<>0) then
print(err.Description)
Endif
print Zip.Decompress("ion.bas", "ori.bas")
if(err.Number<>0) then
print(err.Description)
endif