PowerBuilder
PowerBuilder
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 PowerBuilder Downloads
integer li_rc
integer li_Success
oleobject loo_Gzip
li_Success = 0
loo_Gzip = create oleobject
li_rc = loo_Gzip.ConnectToNewObject("Chilkat.Gzip")
if li_rc < 0 then
destroy loo_Gzip
MessageBox("Error","Connecting to COM object failed")
return
end if
li_Success = loo_Gzip.UncompressFile("qa_data/tar/test.tgz","qa_output/test.tar")
if li_Success <> 1 then
Write-Debug loo_Gzip.LastErrorText
else
Write-Debug "success."
end if
destroy loo_Gzip