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

Type: System.String

Path to the directory.

Glossary Item Box

Get the random file in the directory

Syntax

C# 
public static string DirectoryRandomFile( 
   string pathToDirectory
)

Parameters

pathToDirectory

Type: System.String

Path to the directory.

Return Value

Type: System.String

Path to the random file in the directory.

Example

The following example shows call the DirectoryRandomFile method.
C#Copy Code
string pathToDirectory = {pathToDirectory};
string resultFilePath = FileSystem.DirectoryRandomFile(pathToDirectory);
PHPCopy Code
$pathToDirectory = {pathToDirectory};
$resultFilePath = FileSystem::DirectoryRandomFile($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.