Sample Visual Basic
Code to decompress a TAR file
Where Cryptocx is an instance of a Cryptocx Control.
''
'' Extract (De-Compress) the specified TAR file
''
Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7
Cryptocx.LicenseKey = "DEMO"
Cryptocx.SourceFile = "C:\somefile.tar"
Cryptocx.WorkingFolder = "C:\Windows\Temp\"
theResult = Cryptocx.TARDeCompressTAR
'' Check to see what has happened (if the
de-compression went ok without errors)
''
If theResult = "TRUE" Then
'' Ok, the tar file was de-compressed with no errors
Else
MsgBox theResult
End If
'' Free up Memory Resources
''
Set Cryptocx = Nothing |