Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_findcnt() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_FINDCNT()

 DESCRIPTION

 C_FINDCNT() returns the number of files found matching the given
 file specification and attributes.

 SYNTAX

 C_FINDCNT(filespec [,attr])

 PARAMETERS

 filespec (C) is the file specification to be used to search for
 files.  The filespec argument can be any valid DOS file name and
 can include wild card characters (*, ?).  The complete file name
 including drive and path can be specified.  If a drive and path are
 not given, the search is made in the current directory.

 attr (C) is a character string containing the attributes that are
 acceptable for inclusion of the file(s) found in the search.  Only
 files found with matching attributes are included.  Any number of
 attributes can be specified in the string.  The following is a list
 of valid attributes:

 ATTRIBUTE   DESCRIPTION
 ---------   -----------
 N           Normal files (no R, H, S, or D with or without archive bit)
 R           Read-only files
 H           Hidden files
 S           System files
 D           Directories
 A           Archive attribute set

 RETURNS

 C_FINDCNT() returns the number of files found matching the given
 file specification and attributes.

 EXAMPLES

 c_findcnt("*.*","N")      --> 6    && 6 "normal" files found
 c_findcnt("*.*","D")      --> 2    && 2 sub-directories found
 c_findcnt("C:\*.*","S")   --> 2    && 2 system files found
 c_findcnt("*.dbf","RH")   --> 3    && 3 .dbf files (read-only or hidden)
 c_findcnt("*.*","NRHSD")  --> 18   && 18 total files/directories found


See Also: C_FINDFILE() C_FINDFIRST() C_FINDNEXT() C_FFSIZE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson