ZennoLab Assemblies Documentation
DirectoryRandomFile Method
Example 

Type: System.String

Path to the directory.

Get the random file in the directory
Syntax
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.
string pathToDirectory = {pathToDirectory};
string resultFilePath = FileSystem.DirectoryRandomFile(pathToDirectory);
$pathToDirectory = {pathToDirectory};
$resultFilePath = FileSystem::DirectoryRandomFile($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