| 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.
The following example shows call the DirectoryRandomFile method.
| C# | Copy Code |
|---|---|
string pathToDirectory = {pathToDirectory}; string resultFilePath = FileSystem.DirectoryRandomFile(pathToDirectory); | |
| PHP | Copy Code |
|---|---|
$pathToDirectory = {pathToDirectory}; $resultFilePath = FileSystem::DirectoryRandomFile($pathToDirectory); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family