'Declaration Public Overloads Shared Sub Unzip( _ ByVal zipFileName As String, _ ByVal destinationFolder As String, _ ByVal decryptionPassword As String, _ ByVal replaceExistingFiles As Boolean, _ ByVal recursive As Boolean, _ ByVal preservePaths As Boolean, _ ByVal ParamArray filesToUnzip() As String _ )
'Usage Dim zipFileName As String Dim destinationFolder As String Dim decryptionPassword As String Dim replaceExistingFiles As Boolean Dim recursive As Boolean Dim preservePaths As Boolean Dim filesToUnzip() As String QuickZip.Unzip(zipFileName, destinationFolder, decryptionPassword, replaceExistingFiles, recursive, preservePaths, filesToUnzip)
public static void Unzip( string zipFileName, string destinationFolder, string decryptionPassword, bool replaceExistingFiles, bool recursive, bool preservePaths, params string[] filesToUnzip )
Parameters
- zipFileName
- The fully-qualified path and name of the zip file.
- destinationFolder
- The destination folder to where the files will be extracted.
- decryptionPassword
- The password that will be used to decrypt the files.
- replaceExistingFiles
- Boolean value indicating if existing files should be overwritten.
- recursive
- Boolean value indicating if files contained within sub-folders should be extracted from the zip file.
- preservePaths
- Boolean value indicating if the directory structure should be preserved in the destination folder.
- filesToUnzip
- The files to extract from zipFileName. Cannot be a null reference (Nothing in Visual Basic).