Hitachi

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


$FINDFILE (find files)

$FINDFILE searches files in the specified folder.

Organization of this page

Syntax

$FINDFILE(folder-name,array-name)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

ERROR

The specified folder is invalid.

Script execution interrupted

Indicates one of the following

  • A wildcard or a character string such as .. or . was included in folder-name.

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

Example

This example searches files in Asset-Console-installation-folder\wwwroot\bin and outputs the name of the first file:

$FINDFILE('bin', FileData)
FILE=$GETARRAY(FileData, 1)
$ECHO(FILE)
Execution result:

bin\default.htm