Copying entities between directories
This example copies a file from one directory to another. The sourceFile parameter is a TFile instance, and destinationDirectory is a TDirectory instance.
TFileSystemCopier aCopier;
aCopier.Copy(sourceFile, destinationDirectory);
The TFileSystemCopier::ReportProgress method is called automatically by the framework to show the cumulative percentage of the copy operation that has been completed. You can override this method in a derived class of TFileSystemCopier.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker