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


FlexCompress        Example

Previous  Top  Next

Moves files to the archive.


public virtual void MoveFiles();

public void MoveFiles(string fileMask);

public void MoveFiles(string fileMask, FileAttributes searchAttr);

public virtual void MoveFiles(string fileMask, FileAttributes searchAttr, string exclusionMask)



Public Overridable Sub MoveFiles()

Public Sub MoveFiles(ByVal fileMask As String)

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

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




Use MoveFiles to move files to the open archive file. MoveFiles deletes all files after they will be added to the archive. If you need to add files to the archive without deleting source files, use AddFiles instead of MoveFiles. If Options.Recurse is set to True, MoveFiles will search files recursively.


MoveFiles variant without parameters uses FileMasks, ExclusionMasks and Options.SearchAttr to specify search conditions and to exclude files from move 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 moved 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 move operation.


Note:    If you need to move 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.


        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Apr 13, 2024