Copies a file to a target location.
Syntax:
Parameters:
Returns
Returns 1 if the operation is successful; otherwise the operation returns zero.
Remarks
The target file is created if it does not already exists; if the target file already exists, it will be overwritten.
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oFileSystem As Fredi.ediFileSystem
' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument
' Get file system object.
Set oFileSystem = oEdiDoc.GetFileSystem
' Copy file.
oFileSystem.CopyFile App.Path & "\TestFile.TXT", App.Path & "\CopiedFile.TXT"
MsgBox "Done"
Samples