CopyTree - Copy a Directory Tree
Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE
cla140
Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE
The CopyTree function copies a directory tree. If the target path does not exist, this function creates it.
Function format:
CopyTree( source as String, target as String, overwrite as Boolean) as Boolean CopyTree(source as String, target as String) as Boolean
- sourceThis parameter indicates the name of an existing directory.
- targetThis parameter indicates the name of the new directory.
- overwriteThis parameter specifies if the function overwrites an existing target.
The default, TRUE, overwrites an existing target. If the target file already exists, FALSE causes the function to fail.
Example:
This example copies the clientws directory tree to CliWS.
CopyTree("c:\clientws", "c:\cliws")
On successful completion, the function returns TRUE; otherwise, returns FALSE.