Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us

FlexCompress.ExtractFiles

FlexCompress        Example1                Example2

Previous  Top  Next

Extracts files from the archive.

 

[C#]
public virtual void ExtractFiles();

public void ExtractFiles(string FileMask);

public void ExtractFiles(string fileMask, FileAttributes searchAttr);

public virtual void ExtractFiles(string fileMask, FileAttributes searchAttr, string exclusionMask);

 

[VB.NET]

Public Overridable Sub ExtractFiles()

Public Sub ExtractFiles(ByVal FileMask As String)

Public Sub ExtractFiles(ByVal fileMask As String, ByVal searchAttr As FileAttributes)

Public Overridable Sub ExtractFiles(ByVal fileMask As String, ByVal searchAttr As FileAttributes, ByVal exclusionMask As String)

 

Description

 

Use ExtractFiles to extract files from the open archive file. If Options.Recurse is set to True, ExtractFiles will search files recursively.

 

ExtractFiles variant without parameters uses FileMasks, ExclusionMasks and Options.SearchAttr properties to specify search conditions and to exclude files from add operation.

ExtractFiles variant with parameters uses procedure parameters and ignores FileMasks, ExclusionMasks and Options.SearchAttr properties.

 

The fileMask parameter is the directory and file name mask, including wildcard characters. For example, "TEST\\*.*" specifies all files in the TEST directory stored within the archive file. All files that meets FileMask and SearchAttr will be extracted from the archive.If FileMask is a blank string, no files will be extracted.

 

The searchAttr parameter specifies the special files to include in addition to all normal files.

 

The exclusionMask specifies files to be excluded from extract operation.

 

Note:    Any transaction must be finished before calling ExtractFiles. Otherwise an exception will be raised. Also if some other errors occurs an exception will be raised. Write an OnProcessFileFailure event handler to perform your own error handling.

 

Note:    Use ExtractCorruptedFiles property to specify whether extracting of corrupted files is allowed.

 

Note:    If you need to change the name of the extracted file, use OnExtractFile event handler.

 

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Nov 22, 2024