www.icetips.com  Icetips Utilities Documentation 11/14/2010    

File Search Class:  CountFilesInDirectories

Previous  Top  Next  


Prototype: (String pFF,<String pDirectory>),Long

 

pFFWildcards that are used in the count.  Multiple wildcards can be used, separated by semicolon (;).  For example:  '*.txt;*.php;*.css;*.js;*.htm;*.aspx'
[pDirectory]Optional path to use.  If it is not used then all directories are used.

 

ReturnsReturns number of files counted

 

This method can be called after the ReadDirectories method is called.  It counts files in either all the directories read in by ReadDirectories, or just the one being passed in.  Multiple wildcards can be used, separated by semicolon (;)  For example '*.txt;*.php;*.css' would count all files with .txt, .php or .css extensions. 

 

Example:

ITF  ITFileSearchClass

Fc   Long

Code

ITF.ReadDirectories('C:\Clarion',True)  !! Read all folders in C:\Clarion, showing progress window

Fc = ITF.CountFilesInDirectories('*.txt;*.php;*.css')  !! Count all .txt, .php and .css files in the folders read.

 

 

See also:

ReadDirectories

ScanFiles

ResetFileCounters

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/countfilesindirectories_filesearch.htm