CountFiles
CountFiles>file_spec,result,subdir_flag
Returns the number of files matching file_spec in the result variable.
file_spec can include a directory path, and should include a mask. e.g. c:\temp\*.*
To recurse sub directories set subdir_flag to 1.
Abbreviation : Cou
See Also: CountDirs
Examples
CountFiles>c:\my documents\*.doc,DocCount,0
Message>Number of .doc files : %DocCount%
The following example will count all the files anywhere on the c: drive.
CountFiles>c:\*.*,TotalFiles,1
Message>Total Number Of Files On PC : %TotalFiles%