$FILEDEL (delete file)
$FILEDEL deletes a file.
Syntax
$FILEDEL(file-name)
Values
-
file-name
Specifies the name of a file to be deleted, either as a constant or a variable. A constant must be enclosed in single quotation marks ('').
Specify the file name with 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 |
— |
Script execution interrupted |
Indicates one of the following:
|
Example
The following example copies the file input.csv to the file output.csv, and deletes the source file input.csv:
[SET_VALUE] SRCFILE = 'input.csv' OUTFILE = 'output.csv' $FILECOPY(SRCFILE, OUTFILE) $FILEDEL(SRCFILE)