h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

ZipFile.Open Method

This method is applicable in .NET FRAMEWORK 4.5
Open a Zip archive at the specified path and on the specified mode

 Dim zipPath As String = "c:\naraayanan\exampleuser\end.zip"
        Dim extractPath As String = "c:\naraayanan\exampleuser\extract"
        Dim newFile As String = "c:\naraayanan\exampleuser\NewFile.txt"

        Using archive As ZipArchive = ZipFile.Open(zipPath, ZipArchiveMode.Update)
            archive.CreateEntryFromFile(newFile, "NewEntry.txt", CompressionLevel.Fastest)
            archive.ExtractToDirectory(extractPath)
        End Using 

No comments:

Post a Comment