14.3 Decompress method

Decompresses the source file and writes the decompressed file into the destination file.

14.3.1 Syntax

object.Decompress( 
   SourceFile As String, 
   DestinationFile As String)

14.3.2 Parameters

SourceFile

The name of the file to be decompressed.

DestinationFile

The name of the output file.

14.3.3 Return Values

Boolean. Returns TRUE if successful, otherwise, FALSE.

14.3.4 Example

This example decompresses ion.bas and writes it into ori.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

14.3.5 See Also