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
Indicates the name of an existing directory.
Indicates the name of the new directory.
Specifies if the function overwrites an existing target.
The default, TRUE, overwrites an existing target. FALSE causes the function to fail if the target file already exists.
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.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|