Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$FILEDEL (delete file)

$FILEDEL deletes a file.

Organization of this page

Syntax

$FILEDEL(file-name)

Values

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:

  • The file specified by file-name does not exist.

  • An error occurred when an attempt was made to delete the file (for example, the file is locked).

  • An invalid argument was specified, or an error other than the above occurred.

Legend:

—: Not applicable

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)