| C# | |
|---|---|
public static void DirectoryDeleteFileByMask( string pathToDirectory, string pattern ) | |
Parameters
- pathToDirectory
Type: System.String
Path to the directory.
- pattern
Type: System.String
Mask for remove files .
The following example shows call the DirectoryDeleteFileByMask method.
| C# | Copy Code |
|---|---|
string pathToDirectory = {pathToDirectory}; string pattern = {maskToRemoveFiles}; FileSystem.DirectoryDeleteFileByMask(pathToDirectory, pattern); | |
| PHP | Copy Code |
|---|---|
$pathToDirectory = {pathToDirectory}; $pattern = {maskToRemoveFiles}; FileSystem::DirectoryDeleteFileByMask($pathToDirectory, $pattern); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family