FileCopy
Previous Top Next

Copies a file.
Syntax: FileCopy (Source File, Target File [,Overwrite])
Overwrite default is true which means it will overwrite the target file if it exists.
Example:
If OpenDialog1.Show <> cCancel Then
            FileCopy (OpenDialog1.File, FileName(OpenDialog1.File))
End If

This example will copy the file chosen by the user to the current application path.