f$FileCopy (f$DateiKopieren)
f$FileCopy (f$DateiKopieren)
Copy a file by entering the full file name including path. If the destination file already exists, it is overwritten.
Please note that, when entering a path in the file name, the character "\" must be entered twice ("\\").
Syntax: | Status = f$FileCopy( SourceFile, DestFile [,readonly] ) | ||
| Argument | Type | Meaning |
| SourceFile | String | Name of the file to be copied |
| DestFile | String | Name of the new file |
| Readonly | Integer | 1 – mark the destination file as read-only This parameter is optional. If it is not entered, the destination file has the same property as the source file. |
Result: | Integer | Operation status: 1 – successfully copied, otherwise 0 | |
Example: | Status = f$FileCopy(' c:\\temp\\fileold.txt', 'c:\\temp\\filenew.txt' ) | ||