ZennoLab Assemblies Documentation
DirectoryCountOfFiles Method
Example 

Type: System.String

Path to the directory.

Gets count of files in the directory
Syntax
public static int DirectoryCountOfFiles( 
   string pathToDirectory
)

Parameters

pathToDirectory

Type: System.String

Path to the directory.

Return Value

Type: System.Int32

Count of files in the directory.

Example
The following example shows call the DirectoryCountOfFiles method.
string pathToDirectory = {pathToDirectory};
int countOfFiles = FileSystem.DirectoryCountOfFiles(pathToDirectory);
$pathToDirectory = {pathToDirectory};
$countOfFiles = FileSystem::DirectoryCountOfFiles($pathToDirectory);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

FileSystem Class
FileSystem Members

Send Feedback