Copies a file, an optional callback function can be passed which receives status while the copy operation is in progress.

CopyFileEx(cSourceFile, cDestinationFile [, cCallback])

Parameters

cSourceFile

Fully qualified path of the file to copy.

cDestinationFile

Fully qualified path of the destination for the copy operation.

cCallback (optional)

The function to callback with progress information during the copy operation.
The function should have the following prototype:

FUNCTION CopyCallback(nBytesCopied, nFileSize, nPercentCopied)
ENDFUNC

Return Value

.T. if the file was copied, .F. if the copy operation was aborted by the callback routine.

See Also

Reference

ADirectoryInfo
ADirEx
ADriveInfo
AFileAttributes
AFileAttributesEx
CancelFileChange
CompareFileTimes
DeleteDirectory
DeleteFileEx
FindFileChange
GetFileAttributes
GetFileOwner
GetFileSize
GetFileTimes
GetLongPathName
GetShortPathName
MoveFileEx
SetFileAttributes
SetFileTimes

Used WinApi functions

CreateFile
GetFileInformationByHandle
ReadFile
WriteFile