AppCtrlScript

MAY Computer

Help

ANYFILEFOUND

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

File

See also  

COUNTFILES, IF

Searches if at least one file can be found in the specified folder matching the specified file pattern. If the file pattern is not specified then "*.*" is assumed. By default subfolders are not processed. The result is 0 if no file could be found and 1 if at least one file could be found. Similar to COUNTFILES .

Syntax

ANYFILEFOUND <VariableName>, <Path>[, <Pattern>][, <SubFolders>] 

Part

Description

<VariableName>

Name of the variable where to store the number of found files.

<Path> Folder name
<Pattern> Optional file pattern (* and ? can be used). If missing then *.* is the default.
<SubFolders> Optional 0|1; if 1 then subfolders are searched too. Default is 0.