''FileQueryProcess'' Element

Top  Previous  Next

FileQueryProcess element is used to query the file system like querying a relational database and find the files or directories that match the search criteria.

FileQueryProcess is a Query Process which means it can include sub-processes under it. The input records of a sub-process are provided by the query process.

Place the element into a ProcessBlock or ProcessForm element and set its properties.

FileQueryProcess_pe

 
Properties

Root Directory (Accepts MScript)

The name of the root directory where the file search should start. It can be given absolute, i.e. “C:\temp\documents”, or relative to the root directory of the web application, i.e. "documents". See Absolute or Relative Names.

File Query String (Accepts MScript)

The query string to be used as the precondition to select the files or directories existing under the directory defined by Root Directory property. The value of this property should be a valid MScript expression where the names of the File Attributes can be used as symbols in it.

Example:

NAME wmatch 'abc*.txt' and SIZE < 20000

 

Result Fields (Accepts MScript)

The names of the File Attributes that should take place in the result set should be given in this property. The attribute names should be separated with commas. The name of a result field can be set different than the file attribute name by using a "as" keyword after the attribute name followed by the result field name.
 

Syntax:

file-attribute-name [as result-field] [, file-attribute-name [as result-field]..]

 

If result-field is omitted then file-attribute-name is used as the result field.

Example:

NAME, SIZE, PARENT as DIR, EXT

 
Recursive

To search all the sub-directories of the given root directory, the value of this property must be "True".