Moving entities between directories

This example moves a directory and all directories beneath it from one directory to another. The sourceDirectory parameter is a TDirectory instance and the destinationDirectory is another TDirectory instance on the same volume. The sourceDirectory parameter is not a constant, because TFileSystemMover must update the entity to reflect its new location after the move.

      TFileSystemMover aMover;
      aMover.Move(sourceDirectory, destinationDirectory);

[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