www.icetips.com  Icetips Utilities Documentation 6/29/2009    

Shell Class:  CopyFiles

Previous  Top  Next  


Prototype: (String pSource, String pDestination, Byte pCopyFilesOnly=True, Byte pCopySubDirs=False, Byte pConfirmCreateDest=False, Byte pSimpleProgress=False),Long,Proc

 

pSourceThe source folder and files.  This can be a NULL character separated string with a list of fully qualified filenames. 
pDestinationDestination folder or file. 
pCopyFilesOnlySet to True if you want to copy only files.
pCopySubDirsSet to True if you want to copy subfolders as well.
pConfirmCreateDestSet to True to confirm creation of the destination folder(s)
pSimpleProgressSeet to True if you want to display a simple progress window.

 

ReturnsIf 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



Direct link to this page: http://www.icetips.com/manuals/utilities/copyfiles_shellclass.htm