VB.NET Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



VB.NET Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML to XML
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
PFX
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression
Misc

More Examples...
Email Object
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Byte Array
VB.NET FTPS
System.IO

Unreleased...
Bzip2
LZW
Icon

 

 

 

 

 

 

Untar a .tar.Z Compressed TAR Archive

VB.NET example code to decompress and untar a .tar.Z archive.

    ' Untar a .tar.Z compressed tar archive.
    Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click

        ' The Chilkat.UnixCompress class is included with the "Chilkat Zip" license.
        Dim z As New Chilkat.UnixCompress()
        z.UnlockComponent("anything for 30-day trial")

        Dim bNoAbsolute As Boolean
        Dim untarRoot As String

        ' bNoAbsolute controls whether leading '/' or '\' are automatically
        ' removed from filepaths to ensure that all files are untarred to
        ' a directory beneath the untarRoot.
        bNoAbsolute = True
        untarRoot = "c:/temp/myProduct"

        ' The UnTarZ method is streaming. Files of any size
        ' may be uncompressed and untarred.  No temporary files are produced.
        Dim success As Boolean
        success = z.UnTarZ("myProduct.tar.Z", untarRoot, bNoAbsolute)
        If (Not success) Then
            MessageBox.Show(z.LastErrorText)
        End If

    End Sub





 

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2007 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser