This document is archived and information here might be outdated. Recommended version. |
Extracts a file from the archive to the output directory.
[Visual Basic .NET] Public Sub ExtractFile ( _ ByVal file As String, _ ByVal outputDir As String _ )
[C#] public void ExtractFile ( string file, string outputDir );
[C++]
HRESULT ExtractFile(
BSTR file,
BSTR outputDir
);
[C++]
Parameters file [in]
file is a parameter of type BSTR outputDir [in]
outputDir is a parameter of type BSTR
The ExtractFile method extracts the specified compressed file in the zip archive into the specified directory. Use the GetFileNames method to return an enumeration of files in the zip archive. Ensure the zip archive is open before using the ExtractFile method by using the OpenArchive method.