This method is applicable in .NET FRAMEWORK 4.5
Open a Zip archive at the specified path and on the specified mode
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
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