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

FlexCompress.AddFiles

FlexCompress        Example1                Example2

Previous  Top  Next

Adds files to the archive.

 

[C#]

public virtual void AddFiles();

public void AddFiles(string fileMask);

public void AddFiles(string fileMask, FileAttributes searchAttr);

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

 

[VB.NET]

Public Overridable Sub AddFiles()

Public Sub AddFiles(ByVal fileMask As String)

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

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

 

Description

 

Use AddFiles to add files to the open archive file. If you need to delete source files, use MoveFiles instead of AddFiles. If Options.Recurse is set to True, AddFiles will search files recursively.

       

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

 

The fileMask parameter is the directory and file name mask, including wildcard characters. For example, "C:\TEST\*.*" specifies all files in the C:\TEST directory. All files that meets fileMask and searchAttr will be added to the archive.

 

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

 

The exclusionMask specifies files to be excluded from add operation.

 

Note:    If you need to add certain files without compression set NoCompressionMasks property. If some errors occurs an exception will be raised. Write an OnProcessFileFailure event handler to perform your own error handling.

 

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

 

 

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Jun 19, 2024