Xbasic
FILE.COPY_FOLDER Function
Syntax
Result_Flag as L = FILE.Copy_Folder(C sourcefolder ,C targetfolder [,L only_copy_if_newer ])
Arguments
- sourcefolderCharacter
The path of the folder to copy.
- targetfolderCharacter
The path of the folder to receive the copied data.
- only_copy_if_newerLogical
Default = .F. Specify whether or not only newer files should be copied. A value of .F. will copy all files. A value of .T. will only copy newer files.
Returns
- Result_FlagLogical
Returns .T. if the copy succeeds, otherwise .F..
Description
Copy all of the files in a folder from one folder to another. All sub-folders are copies as well.
Discussion
The FILE.COPY_FOLDER() method copies all files and subfolders from Source_Folder to Target_Folder.
Example
FILE.Copy_Folder("c:\documents\alphafivehelp", "c:\documents\temp", .t.)
See Also