EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
Sections
Index
About
Installation
Properties
Methods
ASP and dotNET
Further Information
  

 

 

GZDeCompressGZ Method
 
     

Cryptocx v7 User Guide

 

GZDeCompressGZ Method

This is the method that you use to decompress a GZ file. You can use it to decompress any GZ file, whether it was created by Cryptocx or some other program.

 

Description

DeCompress a GZ file

     
Syntax

x = object.GZDeCompressGZ

The syntax of the GZDeCompressGZ method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes either "TRUE" or "Error: xxx" where xxx is the error message.

       
Remarks

The GZ compressed file will be a SINGLE file, a GZ compressed file is not a compressed archive, it will most likely be a file.tar.gz you would then typically specify the DestinationFile to be file.tar

The properties you can set when de-compressing a GZ file are:

Required - SourceFile
Required - DestinationFile

       
Returns

String

     
Example Sample Visual Basic Code to decompress a GZ file

Where Cryptocx is an instance of a Cryptocx Control.

''
'' Extract (De-Compress) the specified GZ file
''

Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7


Cryptocx.LicenseKey = "DEMO"

Cryptocx.SourceFile = "C:\somefile.tar.gz"
Cryptocx.DestinationFile = "C:\somefile.tar"

theResult = Cryptocx.GZDeCompressGZ


'' Check to see what has happened (if the de-compression went ok without errors)
''

If theResult = "TRUE" Then
  '' Ok, the gz file was de-compressed with no errors
Else
  MsgBox theResult
End If


'' Free up Memory Resources
''

Set Cryptocx = Nothing

 

 

 

 

Back to Contents Page

 

Click here to set this great site as your home page

Or click here to add it to your Favorites.

  
  
 

Copyright (c) EasyByte Software 1998-2008, info@easybyte.com