Sample code for 30+ languages & platforms
Visual Basic 6.0

UnGzip .tgz to get a .tar

See more Tar Archive Examples

A .tgz is simply a TAR archive compressed using GZip. It is also commonly referred to as a .tar.gz. Chilkat GZip can be used to ungzip to get an uncompressed .tar.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim gzip As New ChilkatGzip

success = gzip.UncompressFile("qa_data/tar/test.tgz","qa_output/test.tar")
If (success <> 1) Then
    Debug.Print gzip.LastErrorText
Else
    Debug.Print "success."
End If