GZip Component
Overview
Used to compress and decompress files using the GZip algorithm. When combined with TAR, it provides the UNIX equivalent to Zip archives commonly found on Windows computers. This component can be used in environments that support COM such as Active Server Pages, Windows Scripting Host, Visual Basic, etc.
- License
- Freeware
- Type
- ActiveX DLL for 32 bit OS
- Version
- 2.1
- File Name
- XGZip.dll
- Download Package
- x-gzip.zip
Download
Download GZip Component
Installation Instructions
- Move the dll to a directory like: C:\Program Files\XStandard\Bin\.
- Open a command prompt and
cd to the directory where the dll is located. - Type regsvr32 XGZip.dll
- Grant "Read & Execute" file permissions on this dll to Everyone.
Note, on Microsoft Vista, the command prompt must be "Run as administrator" as shown in the screen shot below.

Uninstall Instructions
- Open a command prompt and
cd to the directory where the dll is located. - Type regsvr32 -u XGZip.dll
API Reference: ProgID: XStandard.TAR
Sub Compress(FileIn As String, FileOut As String)
Compresses a file.
Sub Decompress(FileIn As String, FolderOut As String)
Decompresses a compressed file. Output must be a path to a folder.
Property Version As String
(read-only)
Product version
Examples
The examples below are for Active Server Pages. For Windows Scripting Host or Visual Basic, replaceServer.CreateObject with CreateObject and replace Resonse.Write with MsgBox.
This example shows how to pack files using TAR GZip
<%Dim objTAR, objGZipSet objTAR = Server.CreateObject("XStandard.TAR")Set objGZip = Server.CreateObject("XStandard.GZip")objTAR.Pack "C:\Temp\golf.jpg", "C:\Temp\images.tar"objTAR.Pack "C:\Temp\racing.gif", "C:\Temp\images.tar"objGZip.Compress "C:\Temp\images.tar", "C:\Temp\images.tar.gz"Set objTAR = NothingSet objGZip = Nothing%>
This example shows how to pack and compress a folder using GZip
When a folder path is passed to the Compress method, it will TAR and compress the folder in a single step.
<%Dim objGZipSet objGZip = Server.CreateObject("XStandard.GZip")objGZip.Compress "C:\Temp\Images", "C:\Temp\images.tar.gz"Set objGZip = Nothing%>
This example shows how to decompress and unpack files using GZip
If the file is a compressed tarball then the Decompress method will decompress and unpack the files into the given folder in a single step.
<%Dim objGZipSet objGZip = Server.CreateObject("XStandard.GZip")objGZip.Decompress "C:\Temp\images.tar.gz", "C:\Temp"Set objGZip = Nothing%>