$FILECOPY (copy file)
$FILECOPY copies a file.
Syntax
$FILECOPY(source-file-name,destination-file-name)
Values
-
source-file-name, destination-file-name
Specifies a file name, either as a constant or a variable. A constant must be enclosed in single quotation marks ('').
Specify the file name using a relative path referenced to the base path specified with the -bp option of the jamscript command. If the -bp option was omitted, Asset-Console-installation-folder\scriptwork is assumed to be the reference folder.
Status
The following table lists and describes the possible statuses:
Status |
Description |
---|---|
NORMAL |
Normal end |
NODATA |
— |
ERROR |
Indicates one of the following:
|
Script execution interrupted |
An invalid argument was specified, or an error other than the above occurred. |
Example
The following example copies the file input.csv to the file output.csv:
[SET_VALUE] SRCFILE = 'input.csv' OUTFILE = 'output.csv' $FILECOPY(SRCFILE, OUTFILE)