ZennoLab Assemblies Documentation
DirectoryCountOfFiles Method
See Also  Example Send Feedback
ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class : DirectoryCountOfFiles Method
pathToDirectory

Type: System.String

Path to the directory.

Glossary Item Box

Gets count of files in the directory

Syntax

C# 
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.
C#Copy Code
string pathToDirectory = {pathToDirectory};
int countOfFiles = FileSystem.DirectoryCountOfFiles(pathToDirectory);
PHPCopy Code
$pathToDirectory = {pathToDirectory};
$countOfFiles = FileSystem::DirectoryCountOfFiles($pathToDirectory);

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.