GZip Function Reference

sUnzip

GZip Function Reference | Example

This function decompresses a zip file.

<DllImport("SapphireGZip.dll")> _
Public Function sUnzip(ByVal sFileIn As String, ByVal sFileOut As String, ByVal lOverWrite As Integer, ByVal lLicence As Integer) As Integer
End Function

Parameters

  sFileIn
    A string specifying the name of the zip file to decompress.
  sFileOut
    A string specifying the name of the file to extract out of the zip file. If all files are to be extracted, this parameter should be an empty string. They will be extracted to the root directory. If you wish to specify a destination directory to extract all the files to, simply specify a he path, e.g. '\My Documents\".
  lWithPath
    An integer specifying whether to use the original path information in the zip file. 1 = Yes, 0 = No.
  lLicence
    An integer specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.

Return Values

  Returns a number indicating success or failure where 0 is successful.