Xceed Zip for COM/ActiveX on x86/x64 Documentation
Xceed Zip control reference / Xceed Zip control methods / GetZipContentsEx method
In This Topic
    GetZipContentsEx method
    In This Topic

    Description

    The GetZipContentsEx method is the same as the GetZipContents method, except that the internal type of the first parameter (which requires you to specify an XceedZipItems collection object) is VARIANT* instead of IDispatch**.

    This allows the GetZipContentsEx method to work in some environments (VBScript for example) where GetZipContents will not work.

    Here is some sample VBScript code to show you how to use GetZipContentsEx. The code will list the contents of the d:\events.zip file by displaying a message box containing each filename in the zip file.

    Visual Basic Copy Code

    Dim xZip 
    Dim xZipItems 
    Dim xItem 
    Dim xResult  

    Set xZip = CreateObject("XceedSoftware.XceedZip.4")  

    xZip.ZipFilename = "d:\events.zip" 
    xZip.FilesToProcess = ""  

    xResult = xZip.GetZipContentsEx(xZipItems, 0) 
    MsgBox xResult  

    For Each xItem in xZipItems 
       MsgBox xItem.Filename 
    Next