|
Previous Top Next |
| Prototype: | (String pSource, String pDestination, Byte pCopyFilesOnly=True, Byte pCopySubDirs=False, Byte pConfirmCreateDest=False, Byte pSimpleProgress=False),Long,Proc |
| pSource | The source folder and files. This can be a NULL character separated string with a list of fully qualified filenames. |
| pDestination | Destination folder or file. |
| pCopyFilesOnly | Set to True if you want to copy only files. |
| pCopySubDirs | Set to True if you want to copy subfolders as well. |
| pConfirmCreateDest | Set to True to confirm creation of the destination folder(s) |
| pSimpleProgress | Seet to True if you want to display a simple progress window. |
| Returns | If the operation failed it will return 0. If the operation was successful but was abandoned by the user it will return 0. If the operation was successful and the user did not abandon, the return value is non-zero. |
This method is designed to copy files from one place to another.
Example:
If Message('Are you sure that you want to copy "' & Clip(Loc:Source) & '" to "' & Clip(Loc:Destination) & '"?','Copy Files?',|
ICON:Question,Button:Yes+Button:No,Button:No) = Button:Yes
! Copy the files
ITS.CopyFiles(Loc:Source,Loc:Destination)
End
See also:
http://msdn2.microsoft.com/en-us/library/ms647743.aspx