tumblr tracker

Copy

Library Reference ›› Folder ››
Parent Previous Next

Folder.Copy


Namespace: Folder


Copies a folder together with all files and subfolders.


retval = Folder.Copy(SourceFolderPath, DestFolderPath, [CancelOnFirstError])


Parameters:

- SourceFolderPath; string constant or variable containing the source folder path to copy from

- DestFolderPath; string constant or variable containing the destination folder path to copy to

- [CancelOnFirstError]; optional (default false); if false, it will ignore any errors and continue with the next file or folder; boolean value


Returns:

true if operation succeeded or false otherwise; boolean value.


Example


If (Folder.Copy("C:\TEMP\WEB", "C:\TEMP\WEBcopy", true))
{
   MessageBox.ShowInfo("Folder Copied.");
}