ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class : DirectoryCountOfFiles Method |
Type: System.String
Path to the directory.
public static int DirectoryCountOfFiles( string pathToDirectory )
Type: System.String
Path to the directory.
Type: System.Int32
Count of files in the directory.
string pathToDirectory = {pathToDirectory}; int countOfFiles = FileSystem.DirectoryCountOfFiles(pathToDirectory);
$pathToDirectory = {pathToDirectory}; $countOfFiles = FileSystem::DirectoryCountOfFiles($pathToDirectory);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.