ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class : DirectoryRandomFile Method |
Type: System.String
Path to the directory.
public static string DirectoryRandomFile( string pathToDirectory )
Type: System.String
Path to the directory.
Type: System.String
Path to the random file in the directory.
string pathToDirectory = {pathToDirectory}; string resultFilePath = FileSystem.DirectoryRandomFile(pathToDirectory);
$pathToDirectory = {pathToDirectory}; $resultFilePath = FileSystem::DirectoryRandomFile($pathToDirectory);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.