FILECOPY
Usage
TIBCO iProcess Workspace (Browser)
TIBCO iProcess Workspace (Windows)
Copy a file.
Syntax
FILECOPY (source, dest)
where:
| • | source is a text string specifying the name of the file to be copied (which must exist). |
| • | dest is a text string specifying the filename to be copied to (which will be overwritten of it already exists), as either a simple filename or full pathname. |
The following environment variables may be used in a pathname:
| — | TEMP, the temporary directory on the iProcess Workspace client. |
| — | HOME, the user’s queue directory on the server, SWDIR\queues\username. |
Note: This directory is not created automatically. This means that before using this environment variable you should check that it exists, otherwise the function will fail.
Returns
One of the following numeric values:
|
Value |
Description |
|
1 |
Success |
|
-4 |
Failed to open either file |
|
-2 |
Failed to copy for any other reason. |
Examples
TIBCO iProcess Modeler:
This command makes a backup copy of a log file in the temporary directory.
FILECOPY ("%TEMP%\log.txt","%TEMP%\log_backup.txt")
TIBCO Business Studio:
IPEFileUtil.FILECOPY("%TEMP%\\log.txt","%TEMP%\\log_backup.txt");