Skip to main content

FileCountInDirectory

Structure

FileCountInDirectory(sDirectory, sExt: String): Integer

Type

Function

Description

This function a count of the # of files in sDirectory that have a file extension matching sExt.

Parameters

ParameterTypeDescription
sDirectoryStringDirectory where the file should be counted
sExtStringExtension that should be matched

Example

iCount = FileCountInDirectory("C:\temp", "TXT")