lfilecopy
Copy a local file to a local location. File locations specified in the assignment file are ignored.
lfilecopy FilePath, DirPath | NewFilePath
Example: lfilecopy "data\test.txt", "data\saved\"
Parameters
Parameter | Data Type | Description |
---|---|---|
FilePath | String | File name, optionally preceded by the path to the file. Must not end with a directory separator. |
DirPath | String | Directory name, optionally preceded by the path to the directory. Must end with a directory separator |
NewFilePath | String | New file name, optionally preceded by the path to the file. Must not end with a directory separator. |
Return Values
Value | Error constant | Meaning |
---|---|---|
0
|
|
Successful |
-13
|
<UIOSERR_OS_COMMAND>
|
An error occurred while trying to perform
the OS command. Set /pri=64 to display the exact error in the message frame. |
Use
Allowed in all component types.
Description
The lfilecopy statement copies the specified file FilePath to the target location, either to DirPath or to NewFilePath. Any file redirections in the assignment file are ignored.
If you want to copy a file to or from a network location, use filecopy.
In other respects, lfilecopy behaves exactly like filecopy. For more information, see filecopy.
Version | Change |
---|---|
9.1.01 | Added ZIP file support |